DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    puckish Guest

    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.

  2. #2
    Svetlana Guest

    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



  3. #3
    mike Guest

    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.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links