Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Feedback appreciated Pin
Vaclav_17-Sep-13 10:21
Vaclav_17-Sep-13 10:21 
Questiondebug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
mrby12314-Sep-13 16:18
mrby12314-Sep-13 16:18 
SuggestionRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
Richard MacCutchan14-Sep-13 21:42
mveRichard MacCutchan14-Sep-13 21:42 
AnswerRe: debug begining: Unhandled exception at 0x77cf15de in blast_vib_proc.exe: 0xC00000FD: Stack overflow. Pin
Marco Bertschi15-Sep-13 10:39
protectorMarco Bertschi15-Sep-13 10:39 
Questionas soon as start program got error message - stack overflow Pin
mrby12313-Sep-13 19:35
mrby12313-Sep-13 19:35 
AnswerRe: as soon as start program got error message - stack overflow Pin
Richard MacCutchan13-Sep-13 22:26
mveRichard MacCutchan13-Sep-13 22:26 
GeneralRe: as soon as start program got error message - stack overflow Pin
CPallini14-Sep-13 6:45
mveCPallini14-Sep-13 6:45 
AnswerRe: as soon as start program got error message - stack overflow Pin
Jochen Arndt13-Sep-13 22:32
professionalJochen Arndt13-Sep-13 22:32 
Typical sources for stack overflows are declaring large objects on the stack and recursive function calls:
C++
void some_func()
{
    // May result in stack overflow if the sizes are close to the stack size
    int large_array[500000];
    CSomeLargeObject Obj;
    
    // Recursive function without stop condition
    some_func();

    // Recursive call if some_other_func() calls some_func()
    some_other_func();
}

Large objects on the stack should be avoided. Use dynamic memory allocation instead (new or malloc()).

So check your code for the above conditions. To detect recursive calls, use the debugger and check the functions that are called for recursions.
AnswerRe: as soon as start program got error message - stack overflow Pin
Erudite_Eric14-Sep-13 21:39
Erudite_Eric14-Sep-13 21:39 
SuggestionGetting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 3:10
Farhan_Karim13-Sep-13 3:10 
GeneralRe: Getting forward from console applications to gui Pin
Richard MacCutchan13-Sep-13 3:44
mveRichard MacCutchan13-Sep-13 3:44 
GeneralRe: Getting forward from console applications to gui Pin
Farhan_Karim13-Sep-13 8:09
Farhan_Karim13-Sep-13 8:09 
GeneralRe: Getting forward from console applications to gui Pin
jschell13-Sep-13 11:36
jschell13-Sep-13 11:36 
AnswerRe: Getting forward from console applications to gui Pin
Marco Bertschi15-Sep-13 10:41
protectorMarco Bertschi15-Sep-13 10:41 
QuestionProblem with const struct initialization in a class Pin
Marco Bertschi13-Sep-13 2:47
protectorMarco Bertschi13-Sep-13 2:47 
QuestionRe: Problem with const struct initialization in a class Pin
David Crow13-Sep-13 9:52
David Crow13-Sep-13 9:52 
AnswerRe: Problem with const struct initialization in a class Pin
Marco Bertschi13-Sep-13 10:02
protectorMarco Bertschi13-Sep-13 10:02 
AnswerRe: Problem with const struct initialization in a class Pin
Kosta Cherry13-Sep-13 16:17
Kosta Cherry13-Sep-13 16:17 
AnswerRe: Problem with const struct initialization in a class Pin
Erudite_Eric14-Sep-13 21:43
Erudite_Eric14-Sep-13 21:43 
AnswerRe: Problem with const struct initialization in a class Pin
Marco Bertschi15-Sep-13 10:35
protectorMarco Bertschi15-Sep-13 10:35 
AnswerRe: Problem with const struct initialization in a class Pin
Stefan_Lang17-Sep-13 0:34
Stefan_Lang17-Sep-13 0:34 
Questionlistview with tooltip Pin
JoneLe8612-Sep-13 18:16
JoneLe8612-Sep-13 18:16 
AnswerRe: listview with tooltip Pin
Richard MacCutchan13-Sep-13 3:35
mveRichard MacCutchan13-Sep-13 3:35 
Questiongetting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
Member 258447412-Sep-13 6:41
Member 258447412-Sep-13 6:41 
SuggestionRe: getting pointer to document from OnGetTabToolTip in MDI tabbed app Pin
David Crow12-Sep-13 16:10
David Crow12-Sep-13 16:10 

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.