none
WPF Application locked down after Suspend and Resume on Windows XP

    Question

  • We are writing a system tray application and the application has a main window with some GUI . We are seeing strange issue with application when resume OS from Suspended State, The application completely locks up.
    • We Run the application
    • We close the application to system tray, we basically hide the main window.
    • Suspend OS by selecting "Suspend" option from the Shutdown menu.
    • Then we power the PC back and
    • Maximize the application from System Tray

    The application is completely locked. None of the UI elements respond to mouse/keyboard it more looks like
    the application is locked.

    Is there some thing I should do to make the message pump working?.

    Friday, February 27, 2009 9:28 PM

All replies

  • Are you sure the application hasn't actually crashed?  Can you try running it in a debugger?

    Monday, March 02, 2009 10:06 PM
  • The application has not crashed, We have very small menu, I am able to use that menu.
    But the GUI on the pages and toolbar completely locks up.

    Tuesday, March 03, 2009 5:06 PM
  • I assume you're using 3.5 SP1?  XP or Vista?  If Vista, DWM on or off?

    Can you send a small self-contained project to me to brendan DOT clark AT microsoft DOT com so I can try it out?  We've fixed a number of issues in previous releases that involve recovering from standby, but this one is interesting and might be an edge case we've missed.
    Tuesday, March 03, 2009 10:11 PM
  • I just tried replacing the main window of application with a simple test window and it does not lock-up. Once I introduce back the main window things gets locked up.
    Our main window has  Grid with <Frame> and Templated Titlebar and Listbox with Animated buttons. 
    Wednesday, March 04, 2009 1:17 AM
  • Could you please provide a small, complete and ready-to-run example to demonstrate the issue you are encountering?

     

    Thanks


    Another Paradigm Shift
    http://shevaspace.blogspot.com
    Wednesday, March 04, 2009 10:08 AM
  • Sure, I will try to create a simple sample to reproduce the issue.
    Wednesday, March 04, 2009 5:55 PM
  • Marc, I created a sample to reproduce the issue. Do you mind giving me a e-mail id to send this code to.

    Friday, March 06, 2009 5:26 PM
  • You could send the project at v-mazho at microsoft dot com.

    Thanks

    Another Paradigm Shift
    http://shevaspace.blogspot.com
    Monday, March 09, 2009 6:51 AM
  • This is likely a timing issue with showing/hiding layered windows and resuming rendering when coming out of standby.  This issue will be fixed in the next version, and will also be released as a QFE before then - I don't have the exact date yet, but it should be soon.
    Friday, May 22, 2009 2:12 AM
  • Hi Brendan Clark,

    I got the same issue but in the case of Lock and Unlock windows xp.
    So may i know in which version this issue will be fixed.

    Friday, July 17, 2009 9:39 AM
  • This will be fixed in .Net 4.0, but the fix did not make it into Beta 1.  There is also a QFE available for 3.5 SP1 that should resolve the issue for you: http://support.microsoft.com/kb/967634
    Friday, August 07, 2009 11:26 PM
  • Brendan, our MouseExtender utility (me.codeplex.com) currently has the same (i suppose) issue.

    Can you check it?
    Because QFE you specified didn't worked for us.

    Target OSes are XP and 2k3

    Thank you
    Monday, November 02, 2009 8:49 PM
  • Hi,

    I'm facing the same issue - hotfix mentioned in http://support.microsoft.com/kb/967634 did not work. Is there a work around?

    Thanks
    Thursday, December 17, 2009 7:17 AM
  • Have you tried running your application on .Net 4.0 Beta 2?  We've made more fixes in this area for 4.0 and your problem might be resolved by running on the more recent release.
    Friday, December 18, 2009 2:46 AM
  • HI Brendan,

    I narrowed down this problem to setting the AllowTransparency property of the Window to "true". Also the workaround for this is as posted in this thread
    http://social.msdn.microsoft.com/forums/en-US/wpf/thread/02e9794e-1654-4a10-9745-27c0d4686c31/?prof=required  (namely resizing the window makes it work).

    Thanks
    Tuesday, December 29, 2009 9:19 AM
  • Thanks!!  The resize solved the problem.

    jim

    Thursday, March 03, 2011 7:28 PM
  • This will be fixed in .Net 4.0, but the fix did not make it into Beta 1.  There is also a QFE available for 3.5 SP1 that should resolve the issue for you: http://support.microsoft.com/kb/967634

    Can you confirm that this was fixed in .Net 4.0?

    I have a WPF application using .NET 4.0 and I see similar symptoms when resuming from hibernation.  Happens on XP and Win7 machines.

    Monday, May 02, 2011 8:31 PM
  • I am seeing similar issue in .Net 4.0 except it is not freezing it is crashing to desktop. In Win 7 x64, to reproduce all I have to do is hit CTRL+ALT+DELETE then press "Cancel" any subsequent interaction with the WPF windows causes crash. 

     

    To add this only occurs when the Transparent Window is over a a Winforms host hosting a D3D control, when I switch the renderer to OpenGL it resumes ok.

    Monday, May 16, 2011 9:39 PM