Home All Groups Group Topic Archive Search About

Application Hangs when computer sleeps

Author
2 Feb 2006 10:08 PM
anonymous
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?

Author
2 Feb 2006 10:34 PM
Willy Denoyette [MVP]
"anonymous" <anonym***@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.

AddThis Social Bookmark Button