Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel a long running process
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00945712
Message ID:
00947320
Vues:
14
Dave,

Thank you, this worked perfectly. The suggested link on multi-threading was very helpfull and answered most of my questions. This in conjuction with your earlier suggestion on overriding the ProcessDialogKey did exactly what I was looking for.

Kind Regards,

Mat

>Thats because the UI thread is busy running the business object's method and cannot service the windows message pump. Start up the long running process on a worker thread:
>
>
>ThreadStart ts = new ThreadStart(yourBusinessObject.YourLongRunningMethod);
>Thread t = new Thread(ts);
>t.Start();
>
>
>I thought this article has a pretty decent explanation of multithreading http://www.gekko-software.nl/DotNet/Art05.htm
>
>If you understand everything in the article then you will have no problem doing what you want to do.
>
>I don't want to overload you but as an alternative to starting threads you can use the asynchronous capability of delegates http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpovrasynchronousdelegates.asp
>
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform