Home > Software engineering >  And a big help me with the MFC stack overflow problem
And a big help me with the MFC stack overflow problem

Time:09-25

I have few people write very dirty c + + programs, I want to use MFC to encapsulate
His main program is too big to stack overflow, before he is adding the size of stack reserved to run

I sealed found increased after stack retains the size in MFC interface CFileDialog pop-up selection window will play not to come out of the path

I wrote on the Internet to a great god, because the stack reserved is too big extrusion CFileDialog run

Persisting down the stack can really get the path window pop up but is stack overflow

How to adjust to let him don't stack overflow?

I can't change his original program, is I don't understand about protein sequence processing

CodePudding user response:

You should use across processes call,
Refer to http://www.autohotkey.com

You should also learn to use editbin. Exe/stack: 4194304 XXX. Exe command modifies XXX. Exe the default stack size,

CodePudding user response:

You directly to your program start exe process to target program

CodePudding user response:

Provisional remedies,
Is changing CFileDialog to pointer types,
FLG CFileDaiog *=new...
FLG - & gt; Show ();

CodePudding user response:


Haven't met god pit program, gave up commonly, such as shell after what

CodePudding user response:

reference 4 floor HDT response:
provisional remedies,
Is changing CFileDialog to pointer types,
FLG CFileDaiog *=new...
FLG - & gt; Show ();

Can't tried it on,,,

CodePudding user response:

refer to the second floor oyljerry response:
you direct your program process to start the target program exe

Thank you, I try, can you tell me is to use process more open?
Can you tell me the target program run after the feedback?

CodePudding user response:

Use the new CFileDialog... The new object is and stack
  • Related