* 632 Posts in 222 Topics by 64 Members Latest Member: Rixarn   **
IFSO PORTAL
  Advanced search
February 04, 2012, 03:29:31 pm
HomeforumHelpSearchLoginRegister**
Recent Posts
[February 01, 2012, 07:03:43 pm]

[January 10, 2012, 09:50:03 pm]

[November 06, 2011, 02:57:54 pm]

[November 05, 2011, 08:11:39 pm]

[November 03, 2011, 12:09:02 pm]

[November 23, 2010, 12:54:50 pm]

[November 23, 2010, 07:59:11 am]

[November 19, 2010, 06:27:09 pm]

[November 11, 2010, 05:31:45 pm]

[October 15, 2010, 01:23:38 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: v1.13 Available « previous next »
Pages: [1] Go Down Print
Author Topic: v1.13 Available  (Read 1274 times)
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 439


TaskyZ
View Profile
« on: November 18, 2009, 08:42:22 am »

Changes since last version

All gadgets now have a Destroy() method that will break references between the gadget and its children/slaves.

The GUI.RemoveGadget() function now has an optional bDestroy integer parameter that tells whether the gadget should have Destroy called on it.  This parameter defaults to True.  If you wish to Remove a gadget from the GUI, but keep it to use later, set this parameter to False.

The RemoveChild() method of all gadgets now has a bDestroy integer parameter that tells whether the gadget being removed should have Destroy called on it.  THis parameter defaults to True.  If you wish to remove a child gadget but keep it to use later, set the is parameter to false.

The Tabber gadget RemoveTabChild() method also now has the optional bDestroy parameter which defaults to True and is used in the same manner.

These changes have been made to solve some circular reference issues which were causing a memory leak.

FileSelect
  • When dialog is first shown, the file textbox now gets focus.

Bug Fixes

Textbox
  • Bug in textbox fixed which on some occasions caused an infinite loop.
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 439


TaskyZ
View Profile
« Reply #1 on: November 18, 2009, 08:44:58 am »

This improves on the memory leak fix in v1.12.  There were still some gadgets being retained by circular reference when being removed.  This version solves all of those issues.

When removing a gadget from the GUI or a parent gadget, if you wish to keep a reference to that gadget for later use, you have to set the bDestroy parameter to false when calling GUI.RemoveGadget() or Gadget.RemoveChild().  The bDestroy parameter tells the method whether or not the destroy funtion should be called, which will destroy all child and slave gadgets from the gadget being removed.
Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: v1.13 Available « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!