Program Freezes
My program runs perfectly well at first, but after about 10 seconds it freezes. Does anyone know why this might happen? If so, how can I fix this?
answer these questions:
does it happen in other programs
do you use windows xp
is your video card agp
when did it start happening (if it only happens to your app, what was the last thing you changed before it started..)
does you PC reboot a while after the freeze
can you bring up task-manager (ctrl-alt-delete)
does it happen in other programs
do you use windows xp
is your video card agp
when did it start happening (if it only happens to your app, what was the last thing you changed before it started..)
does you PC reboot a while after the freeze
can you bring up task-manager (ctrl-alt-delete)
It doesn''t happen in other programs.
I use Windows XP Professional Edition.
I don''t know what the video card is exactly, but I know that it''s not that good.
I''m making a Worm game, and it froze when I added an enemy worm (making a total of two worms).
The computer doesn''t reboot.
I can bring up task manager.
I use Windows XP Professional Edition.
I don''t know what the video card is exactly, but I know that it''s not that good.
I''m making a Worm game, and it froze when I added an enemy worm (making a total of two worms).
The computer doesn''t reboot.
I can bring up task manager.
Are you doing dynamic memory allocation?
What API are you using?
How well does it run with only one worm?
What API are you using?
How well does it run with only one worm?
[twitter]warrenm[/twitter]
Ignore the API question above. Sorry.
When''s the last time you updated your drivers?
Do you have any sort of hardware monitor (like, in the BIOS) that lets you view your CPU/GPU temperatures?
When''s the last time you updated your drivers?
Do you have any sort of hardware monitor (like, in the BIOS) that lets you view your CPU/GPU temperatures?
[twitter]warrenm[/twitter]
I''m not doing dynamic memory allocation.
It runs fine with one worm.
I''m not sure what the answers are to your other questions.
It runs fine with one worm.
I''m not sure what the answers are to your other questions.
ok.
good.
if you can bring up task manager, then the app hasn't hung the pc.. it's just most likly caught it'self in an loop that doesn't terminate... an easy mistake to make
eg: this will loop forever...
this sounds quite likly, since you say it works fine with 1 worm... I assume your using a loop to go through the worms..
compile the app in debug mode, and break it's exercution when it freezes up. this will likly help out a lot.
[edited by - RipTorn on May 26, 2002 9:49:39 PM]
good.
if you can bring up task manager, then the app hasn't hung the pc.. it's just most likly caught it'self in an loop that doesn't terminate... an easy mistake to make
eg: this will loop forever...
for (int x=0; x<32; x++){ for (int y=0; y<32; x++) { blah... }}
this sounds quite likly, since you say it works fine with 1 worm... I assume your using a loop to go through the worms..
compile the app in debug mode, and break it's exercution when it freezes up. this will likly help out a lot.
[edited by - RipTorn on May 26, 2002 9:49:39 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement