- Arnaud Bailly
- PowerBuilder
- Friday, 20 March 2020 06:34 PM UTC
I am trying to write a simple console application for the purpose of running (unit or integration) tests of existing PB code in various libraries. The idea is that I have a dedicated target XXXXTest that includes libraries from the main project and run specialised test functions, displaying the result of each function in the console.
I am currently struggling with the basic problem of having the console wait for the application to terminate. I have followed the code from https://www.rgagnon.com/pbdetails/powerbuilder-print-to-the-console.html and this works fine but the output looks like the following:
$> myapptest.exe
$> hello
world
eg. the console does not wait for the termination of the process which means the process' output comes after the console returns.
Any clue on how to solve this issue?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.