10-09-2000, 12:56 AM
I have a program and after I print some reports and then exit, I still have the program running in the background. To print the forms, I am using Data Report and calling the print routine like so:
But the program doesn't end. If I do not print the reports then it ends...whats the problem? What am I missing?
10-09-2000, 04:35 AM
The data report must be spawning a process which runs in a separate thread. This thread is keeping your program loaded, even when all forms are unloaded.
I don't use the data report but there must be a way to tell when it is finished an operation. I suggest you don't allow unloading until it is done. Alternatively, you can always put an END command in the unload event of your main form, but that is not always the best idea.
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
10-09-2000, 03:06 PM
I figures it out. After I print the Report I have to unload each report. Thanks for your help!