I'm calling a method from myclass using a thread. How could I catch the exceptions thrown from this thread? Try Dim x As New MyClass Dim obj as new CControlObject obj.param1=1 obj.param2=2 Dim TPool As System.Threading.ThreadPool TPool.QueueUserWorkItem(New System.Threading.WaitCallback _ (AddressOf x.dowhatever), obj) Catch ex As Exception MsgBox("Error: " & ex.ToString) End Try
M
Moraleitor
@Moraleitor