Menu

Free dummyCube and it's children

Help
Daniel
2019-03-04
2019-03-04
  • Daniel

    Daniel - 2019-03-04

    Hi!
    If I have a dummyCube with unknown amount of freeForms as children, would they be free'd if I do dummyCube.free?
    Or what happens to the children if I free the parent?

    All the best!
    Daniel

     
  • Jerome.D (BeanzMaster)

    Hi, Daniel Yes all Object based on TGLBaseSceneObject all childrens are automatically free.At this stage If youhave a memory leak surely provide from one of the child object.

    If you free the parent and continue some problems can occurs. Normaly at first level parent is the root og GLScene So, if is nil, normally it will be not render. (never test this thing)

    Cheers
    Jérôme

     
  • Daniel

    Daniel - 2019-03-04

    Hi Jerome!
    Thank you for the answer!!

    Cheers!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.