PDA

View Full Version : File deletion when EXE chash



ErosOlmi
05-06-2008, 13:00
This possible bug refers to the problem exposed in the following topic: http://community.thinbasic.com/index.php?topic=1813.msg13223#msg13223
_________________________________________________

Roberto,

when a bundled EXE generates a GPF, it seems that exploded files remain on disk instead being deleted when user confirm OS dialog showing GPF info.
I think this happen because thinBundle process running the script execution process are in some way dependant so if the latest hangs, all the process chain hangs.

Do you think it would be possible for thinBundle to execute script process in async way so even if script execution process crash, thinBundle can still work and delete files at the end?

Thanks a lot
Eros

RobertoBianchi
05-06-2008, 13:26
Yes, it should be possible but how detect if the script crashes?
My initial idea is add a ThinBasic executable watchdog, I'll check ASAP.

Ciao,
Roberto

ErosOlmi
05-06-2008, 13:28
Maybe checking if process PID is still active or not in the OS process list.
But I do not know much on this.