|
-
Jun 18th, 2011, 12:46 PM
#1
Thread Starter
Lively Member
-
Jun 18th, 2011, 01:45 PM
#2
Re: Error When Using MultiThreading in vb6
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
-
Jun 18th, 2011, 02:09 PM
#3
Re: Error When Using MultiThreading in vb6
VB6 doesn't support multi-threading.
-
Jun 18th, 2011, 05:15 PM
#4
Re: Error When Using MultiThreading in vb6
-
Jun 19th, 2011, 01:58 AM
#5
Thread Starter
Lively Member
Re: Error When Using MultiThreading in vb6
 Originally Posted by Spoo
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
yes that happen each time
-
Jun 19th, 2011, 01:59 AM
#6
Thread Starter
Lively Member
Re: Error When Using MultiThreading in vb6
 Originally Posted by Doogle
VB6 doesn't support multi-threading.
why not
-
Jun 19th, 2011, 02:00 AM
#7
Thread Starter
Lively Member
Re: Error When Using MultiThreading in vb6
 Originally Posted by CVMichael
i will try it
-
Jun 19th, 2011, 05:56 AM
#8
Re: Error When Using MultiThreading in vb6
 Originally Posted by SNIPER.PS
why not
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.
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
|