Click to See Complete Forum and Search --> : how to implement multithreading in VB


venkytvs
March 29th, 2001, 04:24 PM
hi all

can anyone tell me how to implement multithreading in VB.

-venky

John G Duffy
March 30th, 2001, 09:49 AM
Currently, VB does not support true multi-threading. You will have to wait for VB.Net However, there is a sample on http://www.Planet-Source-Code.com/vb that treats this symptom.
Go there and search on "Weidmann" (without the quotes of course). One of the hits purportely does multi-threading. It has been given high marks from his peers. "Weidmann" is the Author

John G

Clearcode
March 30th, 2001, 10:28 AM
There is another way of implementing multithreading in VB - implement your process that you want multiple threads of as a stand alone EXE.
As every executable resides on it's own thread you then have multi-threading. Interprocess communication can be a chore, but its your judgement call as to whether it's worth doing.

HTH,
Duncan

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com

venkytvs
March 30th, 2001, 11:41 AM
thanx..Its great.

I used the class module for createthread and it worked fine.
The only problem i had faced is when the my function finishes execution it don't know where to go back.
Is this becoz he is creating the thread by passing function address by value not by reference ?
I am doing this in WinNT.

-venky