Results 1 to 3 of 3

Thread: File deletion when EXE chash

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    File deletion when EXE chash

    This possible bug refers to the problem exposed in the following topic: http://community.thinbasic.com/index...13223#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
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2

    Re: File deletion when EXE chash

    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
    http://www.thinbasic.com

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: File deletion when EXE chash

    Maybe checking if process PID is still active or not in the OS process list.
    But I do not know much on this.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •