[WiX-users] DTF CA with pInvoke Interop

2009-03-10 Thread Christopher Karper
I have a CA written in C#, which is pInvoking a native dll that I'm supplying. This doesn't work in an installer when I'm actually installing. I can run a test that calls the function from outside the installer DB, and it works fine, but when running in the context of the actual installer, I'm

Re: [WiX-users] DTF CA with pInvoke Interop

2009-03-10 Thread Richard
In article b63998890903101103u266c965fmcd2c6648c85a5...@mail.gmail.com, Christopher Karper christopher.kar...@gmail.com writes: I have a CA written in C#, which is pInvoking a native dll that I'm supplying. This doesn't work in an installer when I'm actually installing. If your CA has a

Re: [WiX-users] DTF CA with pInvoke Interop

2009-03-10 Thread Christopher Karper
I'm actually carrying around the native file as an embedded resource in my managed .dll. It deploys it during it's static constructor if needed. The file is deploying as expected, and depends shows that everything it needs is there. The dll loads, and the function is called and executes...

Re: [WiX-users] DTF CA with pInvoke Interop

2009-03-10 Thread Christopher Karper
FWIW, we got ti to stop blowing up. The native function was returning a string, and we tried a bunch of different variants, but when we changed to Halloc the memory for the string, it stopped crashing. Note, this pInvoke call worked fine in any other instance in any configuration. Not really