Click here to Skip to main content
15,884,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sure, buddy! Pin
toxcct6-Dec-07 4:26
toxcct6-Dec-07 4:26 
GeneralRe: Sure, buddy! Pin
CPallini6-Dec-07 4:51
mveCPallini6-Dec-07 4:51 
GeneralRe: Sure, buddy! Pin
toxcct6-Dec-07 5:54
toxcct6-Dec-07 5:54 
GeneralRe: Delete Elements in arrays Pin
KARFER6-Dec-07 5:29
KARFER6-Dec-07 5:29 
GeneralRe: Delete Elements in arrays Pin
CPallini6-Dec-07 5:40
mveCPallini6-Dec-07 5:40 
Generaltls with ftp in vc++ Pin
gayathri6-Dec-07 2:46
gayathri6-Dec-07 2:46 
GeneralRe: tls with ftp in vc++ Pin
Mike Dimmick6-Dec-07 3:54
Mike Dimmick6-Dec-07 3:54 
GeneralChild process problem Pin
maladuk6-Dec-07 2:23
maladuk6-Dec-07 2:23 
I have a problem executing a particular child process from my Windows MFC application. The call is simply the name of the executable and an input file as commandline option (see below):

CString commandline = "runall.exe datafile.txt";

switch(WinExec(commandline ,SW_SHOWNORMAL))
{
error handling.....
}

The child process starts, but terminates almost immediately without doing its simulations, and without returning any error values. In a console-window the process runs correctly when using the same call. This puzzles me since I also run several other child processes from my application, whithout experiencing the same problems. Launching the process through functions, like spawn or system, etc., does not help either. This child application uses quite a deal of memory, so it could be a memory problem? However, since it runs correctly in a console window even when the parent application is also running, the total amount of memory on the computer must be large enough. Are there some settings I could alter to increase the memory that can be allocated by my application? Any hint on what might be the problem here will be highly appreciated!

Thank you in advance!

maladuk Confused | :confused:

I am using Visual C++ 6.0
GeneralRe: Child process problem Pin
David Crow6-Dec-07 2:35
David Crow6-Dec-07 2:35 
GeneralRe: Child process problem Pin
maladuk6-Dec-07 2:44
maladuk6-Dec-07 2:44 
GeneralRe: Child process problem Pin
David Crow6-Dec-07 2:48
David Crow6-Dec-07 2:48 
GeneralRe: Child process problem Pin
maladuk6-Dec-07 3:04
maladuk6-Dec-07 3:04 
QuestionRe: Child process problem Pin
David Crow6-Dec-07 4:59
David Crow6-Dec-07 4:59 
AnswerRe: Child process problem [modified] Pin
Member 75496011-Dec-07 5:58
Member 75496011-Dec-07 5:58 
GeneralPutting values in array Pin
vjasai6-Dec-07 1:48
vjasai6-Dec-07 1:48 
GeneralRe: Putting values in array Pin
Cedric Moonen6-Dec-07 2:24
Cedric Moonen6-Dec-07 2:24 
JokeRe: Putting values in array Pin
David Crow6-Dec-07 2:40
David Crow6-Dec-07 2:40 
GeneralRe: Putting values in array Pin
jhwurmbach6-Dec-07 3:48
jhwurmbach6-Dec-07 3:48 
QuestionRe: Putting values in array Pin
David Crow6-Dec-07 2:45
David Crow6-Dec-07 2:45 
GeneralRe: Putting values in array Pin
Maximilien6-Dec-07 3:10
Maximilien6-Dec-07 3:10 
GeneralGetting code page descriptions... Pin
Haroon Sarwar6-Dec-07 1:24
Haroon Sarwar6-Dec-07 1:24 
GeneralRe: Getting code page descriptions... Pin
Nibu babu thomas6-Dec-07 2:27
Nibu babu thomas6-Dec-07 2:27 
GeneralRe: Getting code page descriptions... Pin
Haroon Sarwar6-Dec-07 17:17
Haroon Sarwar6-Dec-07 17:17 
QuestionHow to copy a file from pocket PC to destktop Pin
ni_yuansheng6-Dec-07 0:09
ni_yuansheng6-Dec-07 0:09 
QuestionRe: How to copy a file from pocket PC to destktop Pin
David Crow6-Dec-07 2:47
David Crow6-Dec-07 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.