| 
| 
| 
| #204740 - 2012-04-16 07:18 AM  KiXforms classic - properly dispose of a form |  
| It_took_my_meds   Hey THIS is FUN
 
       
 Registered:  2003-05-07
 Posts: 273
 Loc:  Sydney, Australia
 | 
Hi All,
 Does anyone know of a method to properly dispose of a form in KiXforms classic? I've tried to use .dispose or setting the variable to nothing but I have no luck, the memory is not released. I've even tried recursing through the controls and tried to dispose all of the child controls before disposing of the parents, but again I had no luck.
 
 This is a problem for me as I have a pretty large application where people can open up forms that have lots of controls. What can happen after repeated usage is that the GUI goes gooey and I'm pretty confident it is due to memory usage. I'm 95% percent confident that this is simply a bug in KiXforms that I won't be able to escape... but you never know. If I'm truly lucky Shawn may have something to say
   
 Just step through this code and watch task manager, the memory just keeps going up and up.
 
 
 Break on
$s = CreateObject("Kixtart.System")
Debug on
For $i = 1 to 100
	$f = $s.Form
	$f.Dispose
	$f = ""
Next
 Any ideas?
 |  
| Top |  |  |  |  
| 
| 
| #204741 - 2012-04-16 10:05 AM  Re: KiXforms classic - properly dispose of a form
[Re:  It_took_my_meds] |  
| Arend_   MM club member
 
       
   Registered:  2005-01-17
 Posts: 1896
 Loc:  Hilversum, The Netherlands
 | 
Did you try
 
$s = CreateObject("Kixtart.System")
Debug on
For $i = 1 to 100
	$f = $s.Form
	$f.Dispose
	$f = ""
Next
$s = ""
Just to see if the memory is cleared up ?
 |  
| Top |  |  |  |  
| 
| 
| #204745 - 2012-04-16 04:34 PM  Re: KiXforms classic - properly dispose of a form
[Re:  It_took_my_meds] |  
| ShaneEP   MM club member
 
       
   Registered:  2002-11-29
 Posts: 2127
 Loc:  Tulsa, OK
 |  |  
| Top |  |  |  |  
 Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
 
 | 
| 
 
| 0 registered
and 793 anonymous users online. 
 | 
 |  |