In Microsoft Visual Studio 2005, when you run a Microsoft Visual C++ program that calls the execve function or the wexecve function, you may receive the following error message:
The application failed to initialize properly (0xc0150004). Click on OK to terminate the application.
This issue occurs when the following conditions are true:
A Visual C++ parent program calls the execve function or the wexecve function to load and to execute a child process
The envp parameter of the execve function or the wexecve function contains an empty string.
To resolve this issue, make sure that the envp parameter of the execve function or the wexecve function does not contain an empty string.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
The following steps reproduce the problem that is mentioned in the "Symptoms" section. Additionally, the steps demonstrate how to correct the problem by using the method that is described in the "Resolution" section.
Steps to reproduce the problem
Create a parent Visual C++ project that is named T.cpp.