HighTechTalks DotNet Forums  

Check for a DomainSetup?

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Check for a DomainSetup? in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
erickvch
 
Posts: n/a

Default Check for a DomainSetup? - 03-18-2006 , 06:04 PM






I'm using a managed Custom Action hosting the CLR from a c++ dll using wix .
That works great except when I need to use the Custom Action more than once
cause in that case it crashes. After some debuging I found that the error
raises when I call the method CreateDomainSetup(&pDomainSetupPunk) from
ICorRuntimeHost for the second time. My question is how can I check that the
Domain Setup hasn't been created so I dont have to call CreateDomainSetup
and load the pDomainSetupPunk pointer?
This is my code:

CComPtr<IUnknown> pDomainSetupPunk;
CComPtr<IAppDomainSetup> pDomainSetup;
CComPtr<IUnknown> pLocalDomainPunk;
TCHAR szDirectory[MAX_PATH + 1];
// Create an AppDomainSetup with the base directory pointing to the
// location of the managed DLL. The assumption is made that the
// target assembly is located in the same directory

IfFailGo( m_pHost->CreateDomainSetup(&pDomainSetupPunk) );

IfFailGo( pDomainSetupPunk->QueryInterface(__uuidof(pDomainSetup),(LPVOID*)
&pDomainSetup) );

Reply With Quote
  #2  
Old   
dgutride (AT) gmail (DOT) com
 
Posts: n/a

Default Re: Check for a DomainSetup? - 03-29-2006 , 02:43 PM






erickvch:

I've noticed this same problem in my msi. I assume you are using WiX
and calling the custom action either on a page next or from a button
somewhere. Have you made any progress with this problem yet? Now that
you've pointed me to the function that is crashing, I'm going to start
doing some more research on this.

Thanks,
Dana


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.