Launching 64bit process from 32bit process using CreateProcess in C# .Net

May 20, 2012

I was required to execute a Java applet from within a C# application. It kept failing until I found out that it needed 3GB of RAM and the process was 32 bit by default. I then set the .Net process to build specifically as 64 bit.Now I needed to use a 32 bit dll, so I had to use a 32 bit process. The solution is to use the explicit path c:\Windows\Sysnative, so for example the command line "Java -d64 -cp" would be "c:\Windows\Sysnative\Java.exe -d64 -cp", and "cmd.exe" would be "c:\Windows\Sysnative\cmd.exe". You can see on the task manager that...
tags: ,
no comments