[ODE] "New" C++ memory alloc problem

Robson Ito robson_ito at yahoo.com.br
Tue Oct 7 01:40:58 MST 2003


i'm using ODE to my aplication and have the following problem:
dGeonID *pointer_to_geon;
pointer_to_geon = new dGeonID[num_geons];
 
ok. everything seen to be fine when the number of geons are 100, 200, 300...but when it reaches 800 this line generate 0x00000 in the pointer, so a NULL pointer. A test like:
if ((pointer_to_geon = new dGeonID[num_geons]) == NULL) 
is true if num_geons >= 800. its strange becouse to 100, 200 and so it works. What is the problem ?? does someone knows?..any suggestions?
 
Another question. I have made a car like buggy demo. but i figure out that i have to use the inverse matriz to draw the scene to get the things right. if i do not inverse the rotation matriz the whells seen to spin in the wrong side. and everything seen to me inverse. I'm using OpenGL. So my question is. Does i have to use the inverse matriz really???
 
sorry for the poor english...thanks ....any help would be great.



---------------------------------
Yahoo! Mail - o melhor webmail do Brasil. Saiba mais!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webserver.computershop.calgary.ab.ca/pipermail/ode/attachments/20031007/99398695/attachment.htm


More information about the ODE mailing list