Menu

#359 correctly release the controls

closed
nobody
None
Request
2015-12-01
2015-11-04
Vital
No

If I want to release dynamically created component and it does not work. These remain in the memory. For example: I create on a DPFNavigationControllerPage dynamically a TDPFUIView. Additionally, I create a few other components dynamically which get as parent and as the owner DPFUIView previously created. If I switch to another Page, I release the TDPFUIView. Logically all the other components that were Childs of this view should also release. However, these are still present in memory and after numerous calls to the DPFUIView the app crashes. What is also understandable because the memory is full. How do I release the components correctly?

Sorry for my bad english.
Regards Vitaly

Discussion

  • Babak Yaghoobi

    Babak Yaghoobi - 2015-11-05

    Hi Vitaly

    Please attach here a simple project for reproduce it,

    Regards

     
  • Vital

    Vital - 2015-11-16

    Hello, in the Attachment the sample with my simple Project. Sorry for the late post.

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-12-01
    • status: open --> closed
     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-12-01

    Hi Vital

    No problem !
    In your Mobile applications instead of .Free or FreeAndNil just call
    .DisposeOf

    Regards

     

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.