My boss would have some issues with picking another 3rd party :( I did a separate test with a dumb CA that does nothing else but print ESP register value recursively to cause a stack overflow.
Thanks to having Windows debug symbols installed I could see that MSI DLL creates a thread to invoke DLL CA exported function and then stack overflow happens after a bit less that 256 KB consumed. Thread stack size can be given in CreateThread function so it appears certain that MSI.DLL is restricting stack usage to 1/4 of default 1 MB. IMO, purposefully taking out 3/4 of default stack space deserves, if nothing else, a bit of documentation. I solved the problem by creating another thread in CA and calling the code executed by CA in my thread function. -----Original Message----- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 2:49 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Stack available for Custom Actions I still stand by my second sentence. <smile/> I'm not sure what to tell you. The Windows Installer owns the process that loads your DLL. Not sure there is much you can do to change the environment it is using. Maybe pick a different 3rd party vendor? -----Original Message----- From: Tony Juricic [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 05:50 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Stack available for Custom Actions I invoke 3rd-party DLL function and the authors claim that I, that is 'my' MSI, is not giving them enough stack space since the same call has no stack issues when invoked from a test executable. -----Original Message----- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 10:57 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Stack available for Custom Actions What are you doing to run out of stack space? When I get a stack overflow it has always been a bug in my code. -----Original Message----- From: Tony Juricic [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 19:46 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Stack available for Custom Actions I am getting a stack overflow exception when executing deferred custom action in C++, but I am consuming only a quarter of 1 MB which, I believe, is the max stack space allowed per process. Did anybody here have similar things happen to him/her? I'm wondering if msiexec indeed gives much reduced stack space to CAs or am I just having trouble debugging this one deferred CA and correctly calculating the stack consumed? Thanks for any input! ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users