Gotcha. As long as you got it fixed, that's all that really matters. :-)
Bill
>Sorry for late response.
>
>I am actually using using a forms manager but the main problem was a form that was being called by my application and then another form straight afterwards, so a form loaded when the other one closed.
>
>Anyway, I put a work-around in there and that seems to have sorted it.
>
>Thanks
>Kev
>
>>Hi Kevin,
>>
>>One thoughts is to have a forms manager in your application object which will know what forms are open and gracefully close them and release any outstanding object references so the application can QUIT gracefully.
>>
>>I guess a hard-core way might be to invoke the appropriate API function ( can't remember it off the top of my haed ) to force the application to close similar to how the Task Manager does. I would think that generally this would be too drastic but maybe someone who has done it this way will chime in with some details.
>>
>>Bill
>>
>>>Hi
>>>
>>>I have a lockout timer that runs throughout my app and when it's time to shutdown the app, it calls it's standard Quit() method in one of the objects. However, this method sometimes fails when certain forms are open.
>>>
>>>Is there any way I can close the application without it complaining about this and that, no if's and but's, it's a matter of fact, it WILL shutdown immediately!
>>>
>>>Any ideas?
>>>Thanks
>>>Kev
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.