System Crash during Application Termination

I am having a hard time thinking where I should appropriately put this topic because I believe it is not really centered in the "game development" per se... but since I have experienced this problem with all the games I am currently developing and with all the previous games I have developed, I decided to put these topic in this category...

anyway, my problem is whenever I terminate my program, which uses a lot of .GIF or .JPG images (imported via the getToolkit().getImage method) my computer hangs!

this problem happens only in my new desktop computer. when I run my applications in my laptop everything goes smoothly even after i terminate the applications.

my suspicion is that my computer is configured differently. and honestly i dont know the exact configurations of my desktop since I was not present at the time when the installations were made..

here is the rough config/settings/hardware components of my machine:

-running on windows xp professional

-j2sdk1.4.2

-ati radeon 7200 on graphics

-pentium 4 2.3 GHz

-my harddisk is partitioned into two and it seems that the windows system files reside in the secondary partition

does anyone know about this issue with regards to the J2SDK?

is there an issue regarding J2SDK not being compatible with my above settings (in at least one case)?

thanks everyone and have a nice day...

[1423 byte] By [redeemer22928a] at [2007-9-29 12:25:35]
# 1
are you also using fullscreen or bufferstrategy? and are you terminating your app with System.exit().System.exit() often doesn't properly clean up either of the above 2 features. (it seems to be dependant on your gfx drivers)
Abusea at 2007-7-15 2:17:11 > top of Java-index,Other Topics,Java Game Development...
# 2

> are you also using fullscreen or bufferstrategy? and

> are you terminating your app with System.exit().

>

> System.exit() often doesn't properly clean up either

> of the above 2 features. (it seems to be dependant on

> your gfx drivers)

yeah, i forgot to mention that i terminate my applications using System.exit(), and i use a fullscreen, borderless window...

thanks for the info. =) i had a suspicion of the system not having proper cleanup but i didn't have any solid proof.. i always thought System.exit() deals with such operations properly...

is there a better solution to this?

again, thanks a lot!

redeemer22928a at 2007-7-15 2:17:11 > top of Java-index,Other Topics,Java Game Development...
# 3
dispose() of all AWT windows and the AWT Event Thread will die naturally and your app. will terminate. (once all your Threads have died as well - i.e. completed their run() method.)
Abusea at 2007-7-15 2:17:11 > top of Java-index,Other Topics,Java Game Development...