-
how to kill an app gracefully
hi,
i wanted to terminate my application when disconnected from
server, but i've lots of memory leak when i use the
exit() function.
this function doesn't call the proper terminating sequences.
can anyone tell me how do i kill the view, doc etc and terminate gracefully?
thanks a lot.
-
Re: how to kill an app gracefully
"puckish" <puckish@yahoo.com> wrote:
>
>hi,
>i wanted to terminate my application when disconnected from
>server, but i've lots of memory leak when i use the
>exit() function.
>
>this function doesn't call the proper terminating sequences.
>can anyone tell me how do i kill the view, doc etc and terminate gracefully?
>
>thanks a lot.
Hi, you have to call PostQuitMessage()on your MainFrame. It, in turn, Posts
WM_QUIT to all docs, vews etc.
Svetlana
-
Re: how to kill an app gracefully
also, keep in mind the ExitProcess function.
"puckish" <puckish@yahoo.com> wrote:
>
>hi,
>i wanted to terminate my application when disconnected from
>server, but i've lots of memory leak when i use the
>exit() function.
>
>this function doesn't call the proper terminating sequences.
>can anyone tell me how do i kill the view, doc etc and terminate gracefully?
>
>thanks a lot.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks