mcmahon2@comcast.net Guest
|
Posted: Sat Sep 10, 2005 10:33 pm Post subject: Strange CoClass behavior in thread |
|
|
I've been struggling w a large app trying to support late binding event
handling (ie scripting). So I created a very simple applet to
troubleshoot. The applet has two CoClasses, Foo & Bar TAutoObjects. Two
properties of Foo return a Bar instance. At startup Foo is created from
the main thread, then the first instance of Bar. Then the second
instance of Bar is created in a worker thread. Both threads, main &
worker, are intialized multithreaded & all autoobjects are free
threaded. Both Bar instances are accessable from within the app.
VBScript complains that the second instance of Bar, created in the
worker thread, is not an object.
I'm at a loss trying to explain the behavior.
Thanks
Bill
|
|