|
-
May 17th, 2018, 07:42 AM
#30
Re: [VB6] - Multithreading in VB6 part 4 - multithreading in Standart EXE.
TxFlowStateChanged is called from the other thread? Each call is in the different thread or the same one?
If so, you need to initialize the thread before work with it, you should call ThreadProc from your callback function. You also can't call the methods of the VB6 controls from the different thread without marshaling. You need to pass the queries to the main thread using the messages queue, APC, etc. If you can change the sources of the .Net assembly it's simpler to ensure marshaling from that assembly using a callback interface and the typelib-marshaller.
Last edited by The trick; May 17th, 2018 at 07:46 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|