Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Suggestions
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-27-2005, 11:27 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,032
By default, COM registration for a .NET component is marked with ThreadingModel=Both, and since VBP's builder component runs in an MTA, so will the called component. If you change it to ThreadingModel=Apartment (registry entry is at HKEY_CLASSES_ROOT\CLSID\{your .NET component's guid}\InprocServer32\ThreadingModel; I'm not sure if .NET provides an attribute to change this behavior so it may need to be manually modified), COM should then create an STA for the component and run it there.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:12 AM.


Copyright © 1999-2023 Kinook Software, Inc.