Hello richard, > A background task is causing problems on notebooks with XP-SP2. The > application > is developed using D7. It seems that the notebook is shutting down even though > the application is busy processing a background thread.
You can prevent windows for shutting down until the background task is finished by this: procedure WMQueryEndSession(var Msg: TMessage); message WM_QUERYENDSESSION; procedure TMain.WMQueryEndSession(var Msg: TMessage); begin // wait here on an event or whatever signal that thread has done his // work Msg.Result := 1; // signal windows it's ok to shut down. end; --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
