anyway to get the GC to delete a c++ object pointer ?

About Monkey 2 Forums Monkey 2 Programming Help anyway to get the GC to delete a c++ object pointer ?

This topic contains 2 replies, has 3 voices, and was last updated by  Mark Sibly 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5151

    codifies
    Participant

    I assume bbGCMark will free the memory its pointed to when the scope its called in is left?

    is there any way I can give the GC a pointer to something created in c++ with new, so it is later automagically collected ?

    #5159

    abakobo
    Participant

    There is at least this way but I suppose it’s not possible in every case..
    http://monkey2.monkey-x.com/forums/topic/how-to-get-an-extern-class-that-extend-bbobject-and-not-void/

    #5162

    Mark Sibly
    Keymaster

    Ctor and dtor example:

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

You must be logged in to reply to this topic.