Inno Setup LoadStringFromFile fails when file is open in another process

后端 未结 2 927
借酒劲吻你
借酒劲吻你 2020-12-20 02:25

To check to see when a database (SQL Anywhere) is fired up and ready to receive requests I am outputting the database message window to a log (text) file and then attempting

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 03:02

    When spawning the database server, use the dbspawn utility, which is designed for this purpose. You spawn dbspawn along with the dbeng/dbsrv command you want to run, and it starts the server for you. The dbspawn utility doesn't return until the database server is up, running, and ready to accept requests, so there's no guesswork needed and no need to read the console log file.

    I don't know what version of SQL Anywhere you're running, but here is the documentation for v17. It should be the same in any other version.

提交回复
热议问题