Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Mysterious crashing...

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 1st Jul 2009 12:09
For some reason, when I run my program, a window opens, but then it freezez and I cant quit it with the X button at the top. I have to use CTRL+ALT+DEL to exit it. Heres my code it you want to see:

Main.cpp:


t_entity.h:


t_entity.cpp:


Player.h:


player.cpp:


g_def.h:


skybox.h:


skybox.cpp:


shared.h:


Any help would be greatly appreciated
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 1st Jul 2009 12:47
The problem is your while loop :



you are asking that while the object of number "temp" does NOT exist, increase "temp" ... so essentially its going to sit there forever counting until it returns you the value of the first object it finds that does exist, if nothing exists, it will not exit the loop

to fix it, change :

to :


If it ain't broke.... DONT FIX IT !!!
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 1st Jul 2009 13:24
Thanks man, I've been trying to fix this for ages!

Login to post a reply

Server time is: 2024-10-01 06:00:16
Your offset time is: 2024-10-01 06:00:16