Re: Application not shutting down

From: AlanGLLoyd (alanglloyd_at_aol.com)
Date: 07/16/04


Date: 16 Jul 2004 09:31:37 GMT

In article <40f74fe4_5@corp.newsgroups.com>, "Richard" <s@viptx.net> writes:

>What else should I look for?
>

In OnCloseQuery you should first of all check for any time-static conditions
which prevent form closure, and stop closure if necesary, Then if you have
threads, or other processes running, you must trigger the closure of those
other items and provide some form of waiting (WaitForSingleObject,
WaitForMultipleObject, etc) until those other time-dependent items have
completed, then you permit closure.

Alan Lloyd
alanglloyd@aol.com