by stecenko » Sun Feb 04, 2018 1:27 pm
You can have the timer call a custom method in proapp that will cycle through all the active forms and call each restore method.
Then loop through all the active forms and call the release method.
On page 128 of the Technical Reference Manual is info on the active Forms array. See column 2.
You can then check the active forms array to be sure it is empty, then you can quit.
If it isn't empty, then write the form name (column 15) to a text file and display a message (Tried to quit but couldn't). You can look at the text file and identify those forms that don't restore/release properly and figure out why. There might be modal forms that won't behave properly, I don't know; but if you get this to work most of the time that's an improvement.
Richard Stecenko
Interactive Computer Services Inc.
Victoria, British Columbia
204.453.2052