Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIt crashes ! Pin
vikramlinux3-Mar-05 17:55
vikramlinux3-Mar-05 17:55 
GeneralRe: It crashes ! Pin
Anand for every one3-Mar-05 18:27
Anand for every one3-Mar-05 18:27 
GeneralRe: It crashes ! Pin
vikramlinux3-Mar-05 18:42
vikramlinux3-Mar-05 18:42 
GeneralRe: It crashes ! Pin
Member 3076123-Mar-05 19:21
Member 3076123-Mar-05 19:21 
GeneralRe: It crashes ! Pin
Anand for every one3-Mar-05 21:54
Anand for every one3-Mar-05 21:54 
GeneralRe: It crashes ! Pin
namaskaaram3-Mar-05 19:27
namaskaaram3-Mar-05 19:27 
GeneralRe: It crashes ! Pin
Ryan Binns3-Mar-05 19:50
Ryan Binns3-Mar-05 19:50 
GeneralRe: It crashes ! Pin
ionzarate4-Mar-05 0:26
ionzarate4-Mar-05 0:26 
It´s because you are overflowing the stack!!
The stack is the part of memory used for keeping function
arguments and return adresses when calling a function,
but it is also where the LOCAL VARIABLES are kept.

By default the size of the stack is 1 MB, and you
need at least 4 MB of stack for your "int i[1000000]"
array. (4 bytes each int, 1000000 times).

You need to make your stack greater. In VisualC++ 6.0:
Proyect->Settings->Link->Output->Stack allocations

In the "Reserve" text box, try greater values.

Bye!

WTF | :WTF:
GeneralRe: It crashes ! Pin
David Crow4-Mar-05 3:14
David Crow4-Mar-05 3:14 
GeneralCopy folders along with subfolders in C++ Pin
dipeka3-Mar-05 15:29
dipeka3-Mar-05 15:29 
GeneralRe: Copy folders along with subfolders in C++ Pin
zhang8006053-Mar-05 15:44
zhang8006053-Mar-05 15:44 
GeneralRe: Copy folders along with subfolders in C++ Pin
dipeka3-Mar-05 15:47
dipeka3-Mar-05 15:47 
GeneralRe: Copy folders along with subfolders in C++ Pin
zhang8006053-Mar-05 16:17
zhang8006053-Mar-05 16:17 
GeneralRe: Copy folders along with subfolders in C++ Pin
Sheng Jiang 蒋晟4-Mar-05 11:54
Sheng Jiang 蒋晟4-Mar-05 11:54 
GeneralRe: Copy folders along with subfolders in C++ Pin
Jetli Jerry3-Mar-05 18:10
Jetli Jerry3-Mar-05 18:10 
Questionhow to smooth roll the text? Pin
lowiq3-Mar-05 15:19
lowiq3-Mar-05 15:19 
AnswerRe: how to smooth roll the text? Pin
Christian Graus3-Mar-05 16:47
protectorChristian Graus3-Mar-05 16:47 
GeneralRe: how to smooth roll the text? Pin
lowiq4-Mar-05 21:45
lowiq4-Mar-05 21:45 
GeneralVS.NET keeps renaming resources !!! Pin
Christian Graus3-Mar-05 14:41
protectorChristian Graus3-Mar-05 14:41 
GeneralRe: VS.NET keeps renaming resources !!! Pin
Christian Graus3-Mar-05 15:18
protectorChristian Graus3-Mar-05 15:18 
GeneralSaving several documents Pin
joy0073-Mar-05 14:30
joy0073-Mar-05 14:30 
GeneralDouble right click Pin
joy0073-Mar-05 14:21
joy0073-Mar-05 14:21 
GeneralRe: Double right click Pin
zhang8006053-Mar-05 14:49
zhang8006053-Mar-05 14:49 
Generaltemplate issues Pin
act_x3-Mar-05 11:19
act_x3-Mar-05 11:19 
GeneralRe: template issues Pin
Michael Dunn3-Mar-05 11:39
sitebuilderMichael Dunn3-Mar-05 11:39 

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.