Mark Schonewille m.schonewille at
Sat Aug 27 08:22:03 EDT 2016

Don't use "to me" but use the card or the stack that contains the control to be deleted.

Kind regards,

Mark Schonewille

Share the clipboard of your computer over a local network with Clipboard Link

Op 27 aug. 2016 om 13:55 heeft Paul Dupuis <paul at> het volgende geschreven:

> On 8/27/2016 7:27 AM, Richmond wrote:
>> on mouseUp
>>   delete me
>> end mouseUp
> The engine can not delete an object whose script is currently executing.
> This has been a long know issue in LiveCode, but I am not sure it has
> been documented
> In the Dictionary for "Delete" there is a warning: "Important!  You
> cannot delete the object whose script holds a currently executing
> handler." but no explaination of the typical work-around below.
> on mouseUp
>  put the long id of me into tTarget
>  send "delete tTarget" to me in 0 ticks
> end mouseUp
> So I guess you have to use "Assisted Suicide" since you need to send a
> message to the engine to delete the object after it's script is done.
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list