ActiveState Powered by ActiveState

ActiveState Community


Errors when using IPC:Open2

Posted by myersj101 on 2008-04-08 08:55

When attempting to start a process that uses the VC80 C++ runtimes I get the following issue:

A message box pops up and says:

"The application failed to initialize properly (0xc0150004). Click on OK to terminate the application."

When I trace the process using the FileMon utility provided by sysinternals.com I notice the following information:

11:48:54 AM mscript.exe:4232 QUERY INFORMATION C:\ViewStore\x_myers_snap_nt10\PG\common\comcus\%SystemRoot%\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2 PATH NOT FOUND Attributes: Error

Note the path that it is trying to load the VC80 C++ dlls from

C:\ViewStore\x_myers_snap_nt10\PG\common\comcus\%SystemRoot%\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2

For the open2 function is appending the path to the VC80 C++ dlls to the current working directory. This does not allow the process to find the DLL files that it needs to run.

Any suggestions on how to make open2 work properly?

-->