B
Bmack500
Hello all, and thank you in advance!
The below code keeps giving me the error:
Conversion from type 'Object()' to type 'Integer' is not valid.
Do I need to do some casting or somethign?
All I'm doing is passing an object which contains a structure,
Dictionary(type Integer, string) and a
system.directoryservices.searchresultcollection.
Dim ControlThreadVals As Object = New Object() {svrInfo,
dcDict, svrResults}
Try
'******Here's where I get the error: *********************
controllerThread = New System.Threading.Thread(AddressOf
ControlThread, ControlThreadVals)
'********************************************************
controllerThread.IsBackground = True
controllerThread.Start()
While controllerThread.IsAlive
Application.DoEvents()
End While
Catch ex As Exception
Dim strErr As String = ex.Message
Debugger.Break()
End Try
The below code keeps giving me the error:
Conversion from type 'Object()' to type 'Integer' is not valid.
Do I need to do some casting or somethign?
All I'm doing is passing an object which contains a structure,
Dictionary(type Integer, string) and a
system.directoryservices.searchresultcollection.
Dim ControlThreadVals As Object = New Object() {svrInfo,
dcDict, svrResults}
Try
'******Here's where I get the error: *********************
controllerThread = New System.Threading.Thread(AddressOf
ControlThread, ControlThreadVals)
'********************************************************
controllerThread.IsBackground = True
controllerThread.Start()
While controllerThread.IsAlive
Application.DoEvents()
End While
Catch ex As Exception
Dim strErr As String = ex.Message
Debugger.Break()
End Try