Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win2k/WinXP password authentication Pin
Blake Miller12-May-05 11:36
Blake Miller12-May-05 11:36 
GeneralRe: Win2k/WinXP password authentication Pin
David Crow13-May-05 2:05
David Crow13-May-05 2:05 
GeneralRe: Win2k/WinXP password authentication Pin
Blake Miller13-May-05 5:56
Blake Miller13-May-05 5:56 
GeneralProblem passing parameter in DLL writen in Visual Basic Pin
kstang11-May-05 3:55
kstang11-May-05 3:55 
GeneralError in CHKSTK.ASM Pin
houari_id11-May-05 3:39
houari_id11-May-05 3:39 
GeneralRe: Error in CHKSTK.ASM Pin
Alexander M.,12-May-05 7:27
Alexander M.,12-May-05 7:27 
GeneralRe: Error in CHKSTK.ASM Pin
houari_id12-May-05 10:26
houari_id12-May-05 10:26 
GeneralRe: Error in CHKSTK.ASM Pin
cmk12-May-05 21:15
cmk12-May-05 21:15 
The error said stack overflow.
You are looking in the wrong place.
chkstk.asm is where the program actually ran out of stack memory, but your problem is a design issue.
When the error happens look at the call stack in the debugger to see what function(s) were called to produce the overflow.

You either:

1. Tried to allocate too much memory from the stack.
e.g.
void badfunc( void )
{
long badvar[128*1024];
...
}

or,

2. Got caught in a deep function call loop that ended with the same effect as 1.
e.g. for small values this is fine, for larger values it will blow the stack
long badrecurse( long R )
{
long r = 1; // alloc 4 bytes off stack - each iteration!
if( R > 1 ) r = badrecurse(R-1);
return(R * r);
}


...cmk

Save the whales - collect the whole set
GeneralMFC Interface Problem Pin
acinosanduce11-May-05 3:21
acinosanduce11-May-05 3:21 
GeneralRe: MFC Interface Problem Pin
David Crow11-May-05 3:23
David Crow11-May-05 3:23 
GeneralRe: MFC Interface Problem Pin
acinosanduce11-May-05 3:34
acinosanduce11-May-05 3:34 
GeneralRe: MFC Interface Problem Pin
David Crow11-May-05 3:47
David Crow11-May-05 3:47 
GeneralRe: MFC Interface Problem Pin
acinosanduce11-May-05 3:52
acinosanduce11-May-05 3:52 
GeneralRe: MFC Interface Problem Pin
Ravi Bhavnani11-May-05 4:19
professionalRavi Bhavnani11-May-05 4:19 
GeneralRe: MFC Interface Problem Pin
ddmcr11-May-05 4:04
ddmcr11-May-05 4:04 
GeneralHELP AGAIN Pin
acinosanduce12-May-05 10:24
acinosanduce12-May-05 10:24 
Generalupdating user32.lib Pin
Kharfax11-May-05 3:17
Kharfax11-May-05 3:17 
GeneralRe: updating user32.lib Pin
David Crow11-May-05 3:21
David Crow11-May-05 3:21 
GeneralRe: updating user32.lib Pin
Kharfax11-May-05 3:30
Kharfax11-May-05 3:30 
GeneralRe: updating user32.lib Pin
Kharfax11-May-05 3:44
Kharfax11-May-05 3:44 
GeneralRe: updating user32.lib Pin
David Crow11-May-05 3:50
David Crow11-May-05 3:50 
Generalerror C2664: 'TextOutW' : cannot convert parameter 4 from 'char [10]' to 'const unsigned short *' Pin
zeyun11-May-05 2:40
zeyun11-May-05 2:40 
GeneralRe: error C2664: 'TextOutW' : cannot convert parameter 4 from 'char [10]' to 'const unsigned short *' Pin
RChin11-May-05 2:56
RChin11-May-05 2:56 
GeneralCopy Constructors Pin
bhangie11-May-05 2:38
bhangie11-May-05 2:38 
GeneralRe: Copy Constructors Pin
Bob Stanneveld11-May-05 3:09
Bob Stanneveld11-May-05 3:09 

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.