Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch ThreadAbortException ?
Message
De
06/05/2007 18:29:10
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to catch ThreadAbortException ?
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01222946
Message ID:
01222946
Vues:
69
Hello,
I have a form with 2 buttons (Start, Stop) and Marquee styled Progressbar.
When I click start - I running process like

When I click [START]
ProgressBar1.MarqueeAnimationSpeed = 100
ThreadPool.QueueUserWorkItem(AddressOf StartProcess)
....

Private Sub StartProcess(ByVal toState As Object)
   ProcessThread = Thread.CurrentThread
   ....
   loDS = loDriver.ConvertData()
   Invoke(New MethodInvoker(AddressOf DataConvertDone))
When I click [STOP]
     If Not ProcessThread Is Nothing Then
            If ProcessThread.IsAlive() Then
                ProcessThread.Abort()
                ProgressBar1.MarqueeAnimationSpeed = 0
            End If
     End If
And here.. I always got unhandled MESSAGEBOX... And I don't know from where!! this messagebox displays ThreadAbortException text and Ok button.. and title is - my assembly name .. and I try to put TRY/CATCH block before Invoke.... and deep to classes.. nothing help.. always this messagebox appears..

From where this messagebox comes and how to catch it?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform