revBrowser Memory Leak

Chipp Walters chipp at chipp.com
Wed Feb 6 16:48:08 CST 2008


Thomas,

It sounds like Rev isn't quitting correctly. Sometimes this can happen when
threads are open. If you're on a Mac, search the archives for information on
quitting Rev using Applescript. I seem to think something was posted about
this a few months ago.

I've used the following quitMe handler to successfully quit on both Mac and
PC:

on closeStack
  --> CALLED WHEN SOMEONE CLOSES THE MAIN WINDOW
  get the short name of the owner of the target
  if it is "myMainStack" then quitMe
end closeStack

on quitMe
  if the environment is not "development" then
    else
      --> PUT YOUR CLOSE BROWSER CODE HERE
      cancelPendingMessages
      quit
    end if
  else
    --> PUT YOUR CLOSE BROWSER CODE HERE
    close this stack
  end if
end quitMe

on cancelPendingMessages
  repeat for each line L in the pendingMessages
    cancel item 1 of L
  end repeat
end cancelPendingMessages



More information about the use-livecode mailing list