Standalone app as Frankensteinian Monster

Ken Ray kray at sonsothunder.com
Thu Oct 26 23:51:47 EDT 2006


On 10/26/06 8:48 PM, "Mark MacKenzie" <m.mackenzie at sasktel.net> wrote:

> Hello Devin.  Not having much luck so far I stripped the close handler
> to the following:
> 
> 
> on closeStackRequest -- confirm whether to close the window
>   answer question "Are you sure you want to quit the entire program?"
> with "Yes" or "No"
>   if it is "Yes"
>   then
>     quit
>   end if
> end closeStackRequest
> 
> However, the application still does not close when in the stand alone.

Try this:

on closeStackRequest -- confirm whether to close the window
  answer question "Are you sure you want to quit the entire program?"
with "Yes" or "No"
  if it is "Yes"
  then
    lock messages    -- Added line
    quit
  end if
end closeStackRequest

My bet is there's some message firing off during closing that's not getting
handled and so it is interrupting normal quitting operations.

Ken Ray
Sons of Thunder Software, Inc.
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list