Board index » cppbuilder » how to solve a stack overflow
mary
![]() CBuilder Developer |
how to solve a stack overflow2004-10-26 07:46:30 PM cppbuilder60 hi, I write scientific type software that uses 2 arrays of float with two dimensions ; the first one is expected to be between 1 and 200, second from 200 to 100000 almost 20 000 000 data. the arrays are created dynamically. After they are filled inside a loop calling each time one exe. This provocs a stack overflow error. I must mention also that I'm using Code Guard. The help is telling me that it can be provoced by : - a local big array : i've got - a recursive call : i haven't - an assembler procedure that ... : i haven't I try to modify the stacks limits (maximum) but I must also modify the pile limit (maximum) to make it run. I thought only the stack was involved for my problem. I try also to change the definition of the variables : members of a class to local variables and it seems to be able to run further. Do I miss something ? As I'll have to do the same with double in a few months, can someone help me ? thanks mary |