Click here to Skip to main content
15,926,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UNICODE Pin
Per1-Oct-01 5:34
Per1-Oct-01 5:34 
Questioninterlanguage? Pin
pcvsee28-Sep-01 0:25
pcvsee28-Sep-01 0:25 
QuestionHow to know that thread has quit? Pin
overflow28-Sep-01 0:12
overflow28-Sep-01 0:12 
AnswerRe: How to know that thread has quit? Pin
Oscar Vazquez28-Sep-01 2:44
Oscar Vazquez28-Sep-01 2:44 
AnswerRe: How to know that thread has quit? Pin
Joaquín M López Muñoz28-Sep-01 2:48
Joaquín M López Muñoz28-Sep-01 2:48 
AnswerThank you everbody! Pin
overflow28-Sep-01 14:51
overflow28-Sep-01 14:51 
GeneralStack Overflow Pin
Kiddxin27-Sep-01 23:58
Kiddxin27-Sep-01 23:58 
GeneralRe: Stack Overflow Pin
Joaquín M López Muñoz28-Sep-01 2:43
Joaquín M López Muñoz28-Sep-01 2:43 
Each time you call a function, some information (namely the parameters passed, the address of the return point, etc.) is stored on a memory area called the stack, whose name stems from the fact that it behaves like a stockpile of items, i.e. it is fed up and emptied from the top. The stack grows as the program goes deeper into functions calling other functions and shortens as these functions return. Now consider this function for computing the factorial of a number:
int factorial(int x)
{
  if(x==0)return 1;
  else    return x*factorial(x-1);
}
factorial() works fine as long as you call it with a positive argument, but what happens if you invoke factorial(-1)? The function calls itself again and again with arguments more and more negative, until the memory space reserved by the system for the stack fills up and the exception you report pops up.
What most probably happened to you is some kind of neverending recursive loop like this, though possibly in a more convoluted fashion.
Hope this helps.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Generalecho cancellation..... Pin
27-Sep-01 23:38
suss27-Sep-01 23:38 
GeneralHooking the File System !!! Plz Help !! Pin
dudy_boy27-Sep-01 23:37
dudy_boy27-Sep-01 23:37 
GeneralRe: Hooking the File System !!! Plz Help !! Pin
Oscar Vazquez28-Sep-01 3:11
Oscar Vazquez28-Sep-01 3:11 
GeneralI need a list that can display files and folders Pin
27-Sep-01 23:32
suss27-Sep-01 23:32 
GeneralRe: I need a list that can display files and folders Pin
Ahmad9928-Sep-01 0:11
Ahmad9928-Sep-01 0:11 
GeneralEvent provider using C++ Pin
27-Sep-01 23:05
suss27-Sep-01 23:05 
GeneralRe: Event provider using C++ Pin
Michael P Butler28-Sep-01 2:35
Michael P Butler28-Sep-01 2:35 
GeneralBar_Chart Pin
27-Sep-01 22:47
suss27-Sep-01 22:47 
GeneralRe: Bar_Chart Pin
Michael P Butler28-Sep-01 2:36
Michael P Butler28-Sep-01 2:36 
GeneralBar_Chart Pin
27-Sep-01 22:46
suss27-Sep-01 22:46 
QuestionSomething wrong with GetStockObject ??? Pin
Youknowme27-Sep-01 22:36
Youknowme27-Sep-01 22:36 
QuestionHow to handle ClipBoard Problem Pin
binnu27-Sep-01 21:59
binnu27-Sep-01 21:59 
AnswerRe: How to handle ClipBoard Problem Pin
Ganesh Ramaswamy28-Sep-01 10:40
Ganesh Ramaswamy28-Sep-01 10:40 
QuestionMay I know Who have the program? Pin
zhangyifei27-Sep-01 21:43
zhangyifei27-Sep-01 21:43 
Questionhow i do ? Pin
zhangyifei27-Sep-01 21:20
zhangyifei27-Sep-01 21:20 
GeneralRight To Left Allignment of Dialog Box....Microsoft Bull-Sh*t Pin
Ahmad9927-Sep-01 21:09
Ahmad9927-Sep-01 21:09 
GeneralRe: Right To Left Allignment of Dialog Box....Microsoft Bull-Sh*t Pin
Michael P Butler28-Sep-01 2:45
Michael P Butler28-Sep-01 2:45 

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.