hibernate-mode

A WPF App fails when coming out of hibernate mode

I have a WPF application that fails to come out of the timed sleep, followed by hibernate. The render thread seems to be failing during initialization. I tried removing hardware acceleration to check that it's not graphics card related, but that did not help. Here is an exception along with the stacktrace: ERROR An unspecified error oc...

How do I gracefully handle hibernate/sleep modes in a winforms application?

I am writing a windows form application in .net using C#. I am running into a problem that if my program is running when the computer goes into the sleep and/or hibernate state (I am not sure at this time which one, or if both, cause the problem), when the machine wakes up again the program just hangs. The only way to exit out of it is...