Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 21 to 25 of 25 total |
Freeing component and subsequent Assigned checking |
Thu, Feb 18 2016 11:56 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | << I can check if it is assigned and Free it before creation, but how can it be Freed on form close? >>
Just call Free in the form's OnClose event handler. Tim Young Elevate Software www.elevatesoft.com |
Thu, Feb 18 2016 11:57 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | << In the Close event I can say:
Free; However, I can't put the Free; Self := nil; >> You can't assign to Self. Instead, use the form variable (if you're only using one instance of the form and the instance is stored in the global form unit's form instance variable): Free; MyForm:=nil; Tim Young Elevate Software www.elevatesoft.com |
Thu, Feb 18 2016 12:24 PM | Permanent Link |
Trinione | Tim Young [Elevate Software] wrote:
<< Just call Free in the form's OnClose event handler. >> In this case that doesn't work as I call a SlideOut function and in the OnAnimationsComplete event is when I need to do the Free and Nil. The globals unit crossed my mind after sending in my message earlier also. Thanks, will give it a go. |
Thu, Feb 18 2016 4:00 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | << In this case that doesn't work as I call a SlideOut function and in the OnAnimationsComplete event is when I need to do the Free and Nil. >> If you're animating the form, then you probably should just show/hide it instead of trying to constantly create/destroy it. It's actually *worse* for a browser to have you constantly create/destroy elements, because it can over-tax the garbage collector if you do it enough. Tim Young Elevate Software www.elevatesoft.com |
Fri, Feb 19 2016 2:01 AM | Permanent Link |
Trinione | Tim Young [Elevate Software] wrote:
<< because it can over-tax the garbage collector if you do it enough. >> Ah! Noted. This actually makes life a tad bit easier. Thanks. |
« Previous Page | Page 3 of 3 | |
Jump to Page: 1 2 3 |
This web page was last updated on Monday, October 14, 2024 at 05:15 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |