The correct way to quit a Windows standalone

Paul Dupuis paul at researchware.com
Thu May 23 11:48:41 EDT 2019


Actually, this all seems like a Windows "bug" to me.

A language like LiveCode, should, if I script 'quit', do exactly that - 
quit. If there are any open anythings preventing that, the engine should 
shut them all down for us.

Now as a software developer, I agree that good programming practice is 
for the developer's code to close out anything they started or opened 
explicitly. But the spirit of LiveCode is to be forgiving and easy for 
non-programmers to make use of and that seems to me that it should clean 
up for us if we don't.


On 5/23/2019 11:38 AM, J. Landman Gay via use-livecode wrote:
> It's not just fonts, anything that's still in use needs to be removed. 
> Fonts, stacks in use, open processes, com ports, sockets, etc. 
> Basically you need to shut down everything the stack opened.
> -- 
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On May 23, 2019 8:14:59 AM Paul Dupuis via use-livecode 
> <use-livecode at lists.runrev.com> wrote:
>
>> If it is a requirement for any loaded fonts to be unloaded from memory
>> for a Standalone to actually quit under Microsoft Windows then a bug
>> should be entered at https://quality.livecode.com/ to update the
>> Dictionary entries for:
>>
>> closeStackRequest
>> shutDownRequest
>> quit
>> start using font
>> stop using font
>>
>> To note that any loaded font resources must be unloaded to allow a
>> Windows standalone to properly exit.
>>
>>
>> On 5/23/2019 10:41 AM, Eller, Roger via use-livecode wrote:
>>> I do this to cleanly exit my Windows standalone, which is a 
>>> splashscreen stack.
>>>
>>> Because I have used a couple of fonts that I keep with the 
>>> standalone, I have to STOP USING them, else the process will still 
>>> continue to run.
>>>
>>> This handler is in my visible stack, not in the standalone 
>>> splashscreen stack.
>>>
>>>
>>> on closeStackRequest
>>>
>>>     set the itemDel to "/"
>>>
>>>     put item 1 to -2 of the effective filename of this stack &     
>>> "/Resources/TrajanPro" into tPath
>>>
>>>     put quote & tPath & "/TrajanPro-Regular.otf" & quote into 
>>> tTrajanProRegular
>>>
>>>     put quote & tPath & "/TrajanPro-Bold.otf" & quote into 
>>> tTrajanProBold
>>>
>>>     stop using font file tTrajanProRegular
>>>
>>>     stop using font file tTrajanProBold
>>>
>>>     close this stack
>>>
>>>     quit
>>>
>>> end closeStackRequest
>>>
>>>
>>> ~Roger
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
> _______________________________________________
> 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