|
-
Dec 3rd, 2018, 12:33 PM
#1
Thread Starter
Hyperactive Member
ActiveX EXE multi threading and global variables in modules
Hello Group,
Over the last few years I have made an effort to fully understand how vb6 activeX exe achieve multi threading for vb6 apps.
My insight became a little more clear when I needed to move a http call to a thread this weekend. I discovered first hand that VB6 keeps two copies of the global variable ( to be thread safe I assume)
So to get my code working I had to sync the threaded class global with the main gui thread global variable ( via an event from class). It was really amazing to see that they were actually two separate address locations. The global was declared in a Module.
For the GURUS here please correct me if I am wrong, and maybe add more insight to this.
thank you!
Last edited by axisdj; Dec 3rd, 2018 at 12:50 PM.
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
|