BCB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BCB] [bcb 3.0]Shutting Down Windows w/App Running
Hi
I ran into a strange problem. I wrote a bcb 3 app that runs with its main
form hidden (I add a task tray icon to access the app).
Anyway, when I shut down windows, I get an 'illegal opcode' exception (Win
95) or failure to remove task icon (Win 98). After a LOT of
experimentation, I finally discovered that calling
Application->Terminate(); in the FormCloseQuery(...) event stopped the
problem.
FYI, this application does a few unusual things (for me anyway):
It creates a mutex (without explicitly releasing it).
It uses a task tray icon.
It starts with the main form hidden.
I have a siginificant amount of cleanup in the main form's destructor.
Has anyone else seen this problem? If so, what's happening and what is the
correct solution?
Thanks
Bruce
Bruce Bailey
ADP Dealer Services Group
2525 SW First Avenue
Portland, OR 97201
503 294-4206
bjb@nospam.plaza.ds.adp.com
W Komornicki's Home Page |
Main Index |
Thread Index