Re: Help with CreateProcess problem
- From: "David Craig" <drivers@xxxxxxxxxxxxxxx>
- Date: Tue, 22 Dec 2009 16:57:46 -0800
This is very simple debugging. Did you display the memory pointed to by the
parameter you are passing for the environment? Have you determined if the
CreateProcess call you are making requires ASCII or wide characters? Visual
Studio 2005 and 2008 have good interactive debugging engines for
applications they compile.
"Malcolm Hoar" <malch@xxxxxxxxx> wrote in message
news:hgrjqb261q4002malch@xxxxxxxxxxxxxxxxx
I am converting a (working) application from VC++ 6 to
Visual Studio 2008.
The app calls CreateProcess with a lpEnvironment parameter.
This appears to be set up correctly:
* Name value pairs terminated by a null
* An extra null after the last name-value pair
Like this:
Name1=Value1#Name2=Value2##
where # represents a null.
The new process is created successfully but it does
not correctly inherit the environment. It's picking
up a single environment var:
Name1=Value1Name2=Value2
I have searched for similar problems and am completely
stuck. Any thoughts as to the cause, or suggestions for
how to approach diagnosing the problem?
--
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Malcolm Hoar "The more I practice, the luckier I get". |
| malch@xxxxxxxxx Gary Player. |
| http://www.malch.com/ Shpx gur PQN. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
- Follow-Ups:
- Re: Help with CreateProcess problem
- From: Malcolm Hoar
- Re: Help with CreateProcess problem
- References:
- Help with CreateProcess problem
- From: Malcolm Hoar
- Help with CreateProcess problem
- Prev by Date: Re: SpinLock/Mutex : Difference ?
- Next by Date: Re: Help with CreateProcess problem
- Previous by thread: Help with CreateProcess problem
- Next by thread: Re: Help with CreateProcess problem
- Index(es):
Relevant Pages
|