Hello Guys
when i use MultiThreading in vb6 shows me this error and after that project is closed . The file in Attachments
http://www.vb4arab.com/vb/uploaded/3...1308419037.jpg
Thanks For All
Printable View
Hello Guys
when i use MultiThreading in vb6 shows me this error and after that project is closed . The file in Attachments
http://www.vb4arab.com/vb/uploaded/3...1308419037.jpg
Thanks For All
Sniper
Does that happen each time you close the project?
I have no experience with MultiThreading, but I have
encountered that dreaded message periodically while
editting an app in break mode. My changes are lost, and
the project gets closed out.
The "solution" is to reopen the project, try to reconstruct
my changes, SAVE them (!!), and then re-run the app.
Were you making changes?
Spoo
VB6 doesn't support multi-threading.
Here is an example of MultiThreading:
http://www.vbforums.com/showthread.php?t=511995
As far as I understand....
VB 6 apartment threaded objects and programs are limited to execution in a Single Threaded Apartment (STA). Even if you use an out of process object (COM object in an exe) you will only get two threads (the one for your calling program and one for the COM exe) and each of them will be in an STA.
The reason for this is to allow VB 6 objects to be thread safe (safe to call from true multithreaded applications written in other languages).
VB.NET, however, supports an additional threading model, the Free Threading Model, which forces an object to execute in a Multi Threaded Apartment (MTA), this threading model allows multiple concurrent threads of execution.