I've written an application using C# 2.0 for the .NET Framework 2.0.
Everything works fine, but if a laptop running the application hybernates
while a background thread is running the application will hang. Is there a
way to disover when the computer is going to hybernate so I can suspend all
of my background threads?

Re: Application Hangs when computer sleeps by Willy

Willy
Thu Feb 02 16:34:53 CST 2006


"anonymous" <anonymous@discussions.microsoft.com> wrote in message
news:B4F91CB5-6AE6-44F3-A79F-4DE8E29B5C2F@microsoft.com...
| I've written an application using C# 2.0 for the .NET Framework 2.0.
| Everything works fine, but if a laptop running the application hybernates
| while a background thread is running the application will hang. Is there
a
| way to disover when the computer is going to hybernate so I can suspend
all
| of my background threads?

Your threads should restart when the system comes-up again, there must be
something else going on, what kind of application is this?.

Willy.