Windows Standalone strands windows tasks
Bob Sneidar
bobsneidar at iotecdigital.com
Thu Oct 12 12:42:34 EDT 2023
Thanks I'll give that a try. I think I am already quitting the splash stack, because my MacOS works properly, but the second part I never knew about. Unfortunately my Apple laptop is in the shop so I won't be able to test until Monday.
Bob S
-----Original Message-----
From: use-livecode <use-livecode-bounces at lists.runrev.com> On Behalf Of Klaus major-k via use-livecode
Sent: Thursday, October 12, 2023 9:20 AM
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Klaus major-k <klaus at major-k.de>
Subject: Re: Windows Standalone strands windows tasks
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
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list