Class destructor

About Monkey 2 Forums Monkey 2 Programming Help Class destructor

This topic contains 1 reply, has 2 voices, and was last updated by  abakobo 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5130

    codifies
    Participant

    I’m quietly hopefull there is some hidden method OnDelete or similar, would be quite handy…

    #5137

    abakobo
    Participant

    some mx2 objects are not Garbage Collected, like Image for example.
    You have to use .Discard() to destruct them

    Dunno if it works with GC objects but you can force the GC to clean memory with GCCollect()

    Edit: oops looks you are looking for a onDelete callback, so this answer is probably not relevant..

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.