Windows Standalone strands windows tasks

Klaus major-k klaus at major-k.de
Thu Oct 12 12:19:41 EDT 2023


Hi Bob,

> Am 12.10.2023 um 17:36 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi all.
> 
> I have a standalone that uses a splash stack, which upon launch displays a startup graphic, then hides itself and opens the mainstack of my project. On MacOS when I "quit" the entire application quits. On Windows however the splash stack (which is the stack the standalone is built from) keeps running, and if I re-launch the standalone it creates a second instance of the app in memory.
> 
> How do I get the standalone to quit when I close the mainstack in Windows?

add this to the script your mainstack:
-------------------------
on closestack
  close stack "your splash stack here"
  ## do more closestack stuff
end closestack
-------------------------
That should do the trick.

Hint:
To avoid this "Windows feature:
>> if I re-launch the standalone it creates a second instance of the app in memory.
add a dummy handler to your standalone/splash stack script:
-------------------------
on relaunch
   ## NADA!
end relaunch
-------------------------

> Bob S

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list