12-24-2002, 06:46 AM
i allocate memory for my vertex arrays with the new operator and sometimes these arrays get really big.
is it possible to call new too many times becase i call it allot for dynamic memory in my program ??
my program runs fine in debug mode in visual studio. my program crashes when i run the .exe from release mode; i have traced the error down to a line that calls 'new' operator. there are alot of news before that and alot after that. (this is during program init function)
my main question is whether you can call new too many times. i assume yes but that the limit is very high; i am not allocating all that much i think and i have 512 mb of memory.
my second question is do alot of opengl implementations support storing vertex arrays in video memory or only newer ones. i would like to target a broad audience but still need to use big vertex arrays so i will need to use system memory anyway if only newer video cards allow me to put vertex arrays on the video card.
( also if i cannot fit my vertices into 512 of system memory i have no chacne of squeezing them into 64 of video memory or 32 or even 16 on older cards :P )
anyway, i know i am not burning up 512 mb with 'new'; and why does it only crash in release mode?
is it possible to call new too many times becase i call it allot for dynamic memory in my program ??
my program runs fine in debug mode in visual studio. my program crashes when i run the .exe from release mode; i have traced the error down to a line that calls 'new' operator. there are alot of news before that and alot after that. (this is during program init function)
my main question is whether you can call new too many times. i assume yes but that the limit is very high; i am not allocating all that much i think and i have 512 mb of memory.
my second question is do alot of opengl implementations support storing vertex arrays in video memory or only newer ones. i would like to target a broad audience but still need to use big vertex arrays so i will need to use system memory anyway if only newer video cards allow me to put vertex arrays on the video card.
( also if i cannot fit my vertices into 512 of system memory i have no chacne of squeezing them into 64 of video memory or 32 or even 16 on older cards :P )
anyway, i know i am not burning up 512 mb with 'new'; and why does it only crash in release mode?