BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Strange CoClass behavior in thread

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Bill McMahon
Guest





PostPosted: Mon Sep 12, 2005 11:26 pm    Post subject: Strange CoClass behavior in thread Reply with quote



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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.