Christian Mol

Hi,

I'm currently creating a native C++ application that I would like to have some connection with .NET plugins. For this I try to make a kind of bridge. I came across a sample, based on IJW, and try to incorporate this (simple example) into my application.

There is a managedclass assembly containing a class that shows a messagebox with a string passed from the native application. It uses a mixed dll with a wrapper class, which is loaded into the application. However when I try to execute my application on windows XP SP2, I get the error message as stated in the subject. When I copy the application (and the dll's it depends on) to a windows 2000 machine. It does work. So I think it is some problem with either DEP or side-by-side architecture, or both.
I currently have /NoExecute=AlwaysOff in my boot.ini, in order to try to fix the problem (which doesn't solve it), but this is ofcourse not a really nice way of solving the problem. When it was the default /NoExecute=OptIn, I got R6031 runtime errors which says somthing about multiple CRT's being initialized( ).
Is there somewhere this problem is described, because I cannot find a proper explanation of what this means. Also the debugger doesn't provide me with anything other than terminating the application.

Kind regards,
Christian Mol


Re: Visual C++ General Application failed to initialize properly (0xc0000005)

John Mairs

I've had that twice before...here's what I did...I think...

1st case) .NET 2005 SP1 installed on one computer but not the other. The app.exe.manifest file showed the dependencies.

2nd case) can't really remember but I think it might have to do with missing or different mfc or crt runtime between the 2 machines.





Re: Visual C++ General Application failed to initialize properly (0xc0000005)


Re: Visual C++ General Application failed to initialize properly (0xc0000005)

Christian Mol

I did, but no useful information there, unfortunately




Re: Visual C++ General Application failed to initialize properly (0xc0000005)

Christian Mol

Hi,

Some more (strange) information. I noticed the next strange effect:
If I try to run the application on my laptop intself, the error is R6031 Attempt to initialize the CRT more than once.
However, I usually use remote desktop to work on my laptop en when I try the run the application in the remote desktop session, the error I get is the one in the subject.

Any ideas

Regards,
Christian