Minor bug: win32 ZSnes mishandles OS kill request

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Phantom Lord

Minor bug: win32 ZSnes mishandles OS kill request

Post by Phantom Lord »

The Windows version of Zsnes doesn't handle being killed by the OS gracefully.

You can see this behavior by running zsnesw, then running

taskkill /IM zsnesw.exe

The OS kills the window, but the sound and zsnesw keep running. You have to forceably kill it with /F. This means that front ends with a unified exit feature (like GameEx) cannot cleanly terminate ZSnes (causing lost SRAMs)
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

How does that kill it exactly? Sends a signal?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

I blame taskkill. Poor, underpowered version of the real thing, and last time I checked, doesn't free memory correctly.
It only works correctly with programs made to work with it - the nesticle way. :twisted:
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Post Reply