Multithreading in VB 6 WITHOUT COM 
Author Message
 Multithreading in VB 6 WITHOUT COM

Has anyone tried the CreateProcess in VB 6 for multithreading?

--

David Sanchez
305-436-2349

http://www.*-*-*.com/



Tue, 30 Apr 2002 03:00:00 GMT  
 Multithreading in VB 6 WITHOUT COM

Quote:

> Has anyone tried the CreateProcess in VB 6 for multithreading?

Wouldn't you create a process as opposed to a thread using
CreateProcess?
I haven't tried it myself but my feeling is that if you want to
implement multithreading in VB6 you should let COM handle it for you
(serialised calls and cross-thread marshalling). Using Win32 calls is
asking for trouble and a lot of debug time.

I have done multithreading in VB6 using CreateObject within an ActiveX
exe, using a timer and some callback using interfaces. I have spent a
few weeks understanding why he did not work on my deployment machine but
did on my development one. My advice is to make sure you get the latest
SP installed on NT workstation and NT Server (I had troubles with NT
Server SP3).

Yann.



Tue, 30 Apr 2002 03:00:00 GMT  
 Multithreading in VB 6 WITHOUT COM
David,

I tried but it didn't work. In my case, as soon as I called WIN API
function from within my new thread, the application crashes (crash was
also caused by MsgBox, On Error ..., DoEvents, and others). My solution
was to go back to VB5. It works in VB5. Just to be curious, I created an
executable for my working VB5 project with the VB6, and it crashed.
Looks loke VB6 sucks for multithreading.

Stas Gureyev



Quote:
> Has anyone tried the CreateProcess in VB 6 for multithreading?

> --

> David Sanchez
> 305-436-2349

> http://www.cellit.com

Sent via Deja.com http://www.deja.com/
Before you buy.


Mon, 13 May 2002 03:00:00 GMT  
 Multithreading in VB 6 WITHOUT COM
See Dan Appleman's article on VB threading, the last paragraph should
explain.

http://www.desaware.com/Articles/ThreadingL3.htm


Quote:
> David,

> I tried but it didn't work. In my case, as soon as I called WIN API
> function from within my new thread, the application crashes (crash was
> also caused by MsgBox, On Error ..., DoEvents, and others). My solution
> was to go back to VB5. It works in VB5. Just to be curious, I created an
> executable for my working VB5 project with the VB6, and it crashed.
> Looks loke VB6 sucks for multithreading.

> Stas Gureyev



> > Has anyone tried the CreateProcess in VB 6 for multithreading?

> > --

> > David Sanchez
> > 305-436-2349

> > http://www.cellit.com

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 19 May 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Multithreading in Com Add in blocks Outlook Event Handlers

2. *CoSrv* , VB6 multithreading enabler COM add-in ???

3. MultiThreading in VB6 with COM Iteraction

4. *CoSrv* , VB6 multithreading enabler COM add-in ???

5. newbie - COM with MTS Vs COM without MTS

6. *CoSrv* , VB6 multithreading enabler COM add-in ???

7. *CoSrv* , VB6 multithreading enabler COM add-in ???

8. Data Link Dialog in VB.NET without COM reference

9. Call VB DLL or COM object from within VB COM object or EXE

10. Multithreading in VB: Affinity

11. Multithreading in VB question

12. Multithreading problem in vb

 

 
Powered by phpBB® Forum Software