Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch ThreadAbortException ?
Message
From
06/05/2007 18:29:10
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to catch ThreadAbortException ?
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01222946
Message ID:
01222946
Views:
70
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?
Next
Reply
Map
View

Click here to load this message in the networking platform