Threading Model of ATL/EXCEL COM PLug in



Hi All,
I am developing an Excel Addin in COM technology using C++. My
Plugin uses one Active X control (loads this Active X control in a
dialog) and one COM DLL.

Threading model of my plugin is Both.
Threading model of active X control is Both.
Threading Model of COM DLL is Free.

In this configuration everything is working fine, but I am not able to
understand why it is working fine because as far as I know Excel runs
in Single threaded apartment and therefore my plug in will also load
in Single Threaded apartment. So How my plugin is able to load a DLL
which is free threaded.

Also If I change the threading model of active X control to 'Free'
then while showing the Dialog, Excel Crashes. Can any one tell me why
it is happening?

Can any one please tell me why plugin is able to load a free threaded
COM DLL but failed to load a free threaded Active X control?

Any help or pointer will be greatly appreciated.

Thanks & Regards,
Mousam Dubey
.



Relevant Pages

  • Question Regarding Plugin Architecture
    ... I am working on a Web Application that can dynamically load ... UserControls, a la a plugin style system. ... load the specific control and add it to the PlaceHolder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Is there any way to start (and later quit) an EXE file.
    ... the QuitApp subroutine so that it will terminate any process named "VNC.exe" ... Is there also a way to avoid the first macro trying to load the EXE a ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you ...
    (microsoft.public.excel.misc)
  • Re: Completion of Controller Synhesis
    ... crane position as a function of the control output. ... The hardest way is using load position feedback. ... Where is the crane or cart position then? ...
    (sci.engr.control)
  • Re: Transformer attenuators
    ... Ohm at -6db attenuation, ... combined with around 1nF load capacitance (easily found ... control we must either accept drastically higher levels ...
    (rec.audio.tubes)
  • Re: IsPostBack and usercontrols
    ... Microsoft Online Support ... | End Sub 'LoadTab ... |> Private ContentControl As Control ... Since there exists Data Load code in the Control's internal code ...
    (microsoft.public.dotnet.framework.aspnet)