我在使用ThreadAbortException调用我的应用程序时遇到错误并崩溃"线程正在中止" 我怎么还能调用函数但不会崩溃?
我正在运行Lightstream,使用实时流将来自服务器的数据流式传输到我的vb.net应用程序中,以便OnUpdate触发调用
Public Sub OnUpdate(itemPos As Integer, itemName As String, update As IUpdateInfo) Implements IHandyTableListener.OnUpdate
Dim sResult As String = "Case: " & update.ItemPos.ToString & " - " & Environment.NewLine & update.ToString
Call Process_Data_Call(update.ItemPos.ToString, sResult)
End Sub
Private Delegate Sub Process_Data_Delegate(iItemPos As String, sResult As String)
Private Sub Process_Data_Call(iItemPos As String, sResult As String)
If Me.InvokeRequired Then
Me.Invoke(New Process_Data_Delegate(AddressOf Process_Data_Call), New String() {iItemPos, sResult})
Else
'functions go here
End If
End Sub