Re: Terminating Application
- From: "Tom Serface" <tserface@xxxxxxx>
- Date: Thu, 11 Aug 2005 07:41:22 -0700
Call ::PostQuitMessage(). Make sure that any threads know about it as well
so they can exit (I.E., not in tight loops).
Tom
"Mehran Ziadloo" <mehran20@xxxxxxxxxxx> wrote in message
news:uwgCvWlnFHA.3568@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> Does anyone know how can I terminate an SDI application?
> To explain my situation, I'm trying to make an error handling mechanism
> and
> for some critical situations I have to terminate the whole application
> since
> it can't carry on anymore. I want to do this somehow that my classes
> destructors are called too. I have tried sending WM_CLOSE to the project's
> main window but it can't work out since I don't want my code execution
> flow
> to carry on after I sent this message (it makes unhandled exceptions). I
> would like something like exit(0) but it won't let the classes to do their
> destructing tasks.
>
> Does anyone have any idea?!
>
> Thanks,
> Mehran Ziadloo
>
>
.
- Follow-Ups:
- Re: Terminating Application
- From: Joseph M . Newcomer
- Re: Terminating Application
- References:
- Terminating Application
- From: Mehran Ziadloo
- Terminating Application
- Prev by Date: Re: crash when terminating
- Next by Date: Re: OnIdle and UI thread
- Previous by thread: Re: Terminating Application
- Next by thread: Re: Terminating Application
- Index(es):
Relevant Pages
|