|
-
Jan 16th, 2018, 07:13 PM
#2
Re: Question about classes in VB6
Hi Ben,
I'm sure Olaf will chime in on this one, as he's quite the expert on COM, COM+, and class instantiation. However, it's my understanding that a single copy of the code is loaded on the first instantiation. Since the code is re-entrant, you'll only need one copy. However, all variables, including module level and statics, will have separate copies created.
Hope That Helps,
Elroy
Also, when dealing with these COM objects, it's always important to differentiate between separate instantiations (separate instances), and aliases of the same instance. VB6 may not like aliasing of regular variables, but it trivially aliases any object.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
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
|