Task still running after application is closed (ViP Specific)
At 06 NOV 1997 04:06:28AM Raphael Ribordy wrote:
Hello,
I run VIP 32 bits runtime on Win95. The application works fine, that means all reports are displaying and running correctly.
The problem is that when i close the application, the task is still running in the Win95 Tasks list.
I must manually close it before i can restart the computer.
Is there a way to avoid that ?
Has anyone already seen this problem ?
In advance, thanks for your response.
Raphael Ribordy
rr@dextra.ch
At 06 NOV 1997 02:03PM Stephen Bellefontaine Revelation wrote:
Hello Raphael,
Based on the information you have supplied, it sounds like something in your application is still open after you attempt to exit.
Therefore, my first question is how are you closing the application? Make sure that you have closed all windows properly(Term & RequestClose).
Try using the AppHalt Function to force an immediate exit …
Status%=AppHalt(ForceHalt%)
You also mentioned that you are printing reports from this application. In that case, you may want to manually close or destroy windows, controls, queries, resultsets and or any connections in your app. This would ensure that you free up memory currently in use.
Here are a few ViP methods to help you do that …
Delete Statement -
Delete objRefQueryDestroy Method
Status%=DataObjectRef.QueryDestroy()DbRegDisconnect
rc%=DbRegDisconnect( 1, Conn$, ErrMsg$)This disconnects the database defined by the Connection name Conn$.
And finally what version of ViP are you using ,is the behavior machine-specific, and can you reproduce this behavior on a scaled-down sample of your app?
Hope this helps,
ViP Tech Support
At 07 NOV 1997 03:31AM Raphael Ribordy wrote:
Hello,
I use Vip 2.2.
In fact i have a main Window which lauches all others.
The other windows are not visible and not enabled (defined in the Setup of each window).
Each appWindow contains a data object and a report. The AppWnd Term event contains a "closeAppWindow" command.
And when i quit the application i have a AppHalt(0) command, which should close all others window.
I reproduced that problem on WinNT and Win95, with several versions of the application.
I hope this will help.
Thank you.
Raphael Ribordy
At 07 NOV 1997 04:31AM Raphael Ribordy wrote:
Hello Stephen,
it's ok. The problem is solved. I didn't close every application window. Now it's OK
Once again, thank you.
Raphael Ribordy