galaxy2004
Newcomer
- Joined
- Apr 1, 2005
- Messages
- 6
I have created an application which runs multi-thread procedures.
Thread can be run in the IDE (design mode). When I packaged up the application and installed on the client machine (with Framework 2.0 installed), the thread does not start.
here is the code :
'-------------------------------------------------
Private Delegate Sub Task(ByVal state As Object)
private sub start()
dim tmpStr as string = "Test Message"
Dim worker As New Task(AddressOf RptThread)
worker.BeginInvoke(tmpstr, Nothing, Nothing)
end sub
Private Sub RptThread(ByVal state As Object)
dim txt as string = state.tostring()
MsgBox(txt)
end sub
'----------------------------------
The start() procedure will be fired when a button is clicked.
"Test Message" is supposed to be shown, but nothing shows.
I have VS 2003 and VS 2005 installed on my development machine.
did I miss something when I install the application ?
Thread can be run in the IDE (design mode). When I packaged up the application and installed on the client machine (with Framework 2.0 installed), the thread does not start.
here is the code :
'-------------------------------------------------
Private Delegate Sub Task(ByVal state As Object)
private sub start()
dim tmpStr as string = "Test Message"
Dim worker As New Task(AddressOf RptThread)
worker.BeginInvoke(tmpstr, Nothing, Nothing)
end sub
Private Sub RptThread(ByVal state As Object)
dim txt as string = state.tostring()
MsgBox(txt)
end sub
'----------------------------------
The start() procedure will be fired when a button is clicked.
"Test Message" is supposed to be shown, but nothing shows.
I have VS 2003 and VS 2005 installed on my development machine.
did I miss something when I install the application ?