Hi I'm fairly new to programming so excuse me if the problem is unclear or if I haven't provided enough info.
I am running windows vista, I have 2gb memory. I'm compiling in dev c++, which uses g++ compiler.
Code:#define MAX_DSIZE 6000 struct entry { // length of entry int points; // float to hold wavelength, flux and error float wl[MAX_DSIZE]; float flux[MAX_DSIZE]; float error[MAX_DSIZE]; }; int main () { int num_files=450; struct entry tdata[num_files]; }
It compiles fine but when I run it I get a windows error
"new2.exe has stopped working..."
It works for num_files <= 27 so I guess it is some kind of memory problem.
Anyone know how I can fix this?
Thanks
Jase
"



LinkBack URL
About LinkBacks



