CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    Exiting NT session

    I have multithreaded application with several UI thread and several worker threads. The application fails to exit when Windows NT session is exiting. I check WM_QUERYENDSESSION and WM_ENDSESSION are sent to all top-level windows and return values are correct. NT waits for the application to exit and then displays dialog box "application is not responding". Everything works fine and the application successfully exits when running on Windows 9x. Also normally it exits well on either platform. Unfortunately, I cannot set breakpoint in WM_QUERYENDSESSION and WM_ENDSESSION messages handlers when Windows is exiting.
    Does anyone have any idea?



  2. #2
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Exiting NT session

    I don't have an idea about your problem but I do have one about trying to debug it.
    Try writing a little app that will emulate windoze and fire those session messages
    into your app. That way you can keep your session running and debug your app's
    handling of those messages.



  3. #3
    Guest

    Re: Exiting NT session

    I don't think I can emulate exiting Windows session as I personally don't know what actions and in which sequence Windows makes when it is about to exit.


  4. #4
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Exiting NT session

    Try using Spy++ and monitor messages to and from your app.
    You can set the output to log to a file and then look at the file
    after you have restarted your session.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured