help with segmentation fault on MD2 file

Started by
10 comments, last by Michael2006 17 years, 8 months ago
Ah, hehe! The most hard-to-crack bugs are often the most easiest/silliest to solve. You really should check if everything loads correctly.
The MD2 function you have written returns bool, caatch it! =)
----------------------------------------------------------------------------------------------------------------------"Ask not what humanity can do for you, ask what you can do for humanity." - By: Richard D. Colbert Jr.
Advertisement
I have added the following
//generic
if(m_model.Load("stuff.md2","skin.tga")==false)exit(0);
if(...................................)........)exit(0);
if(.............................................)exit(0);

and the files seem to load
also my TargaImage Load is bool
and I have added the same check on it and it seems to load.

I dont know how to step throught the code via gdb on DEV-C++
if i try at prompt gdb project.exe it wont recognise project.exe (under Windows)

As for Linux gdb project works but I dont know how to step through it yeight!.

This topic is closed to new replies.

Advertisement