on 3/25/06 8:05 AM, Sven E Olsson at [EMAIL PROTECTED] wrote: > EditField Memory Leak RB2006r1 OS X 10.4.5 ?? > > > I have build an small test app with an EditField. (About 9MB used > Memory when I opened the app) > > 1 - I Open an 1.8 MB Text File and the memory used is 115.36MB! > 2 - I close the Window and now the used memory is 113.14MB! > 3 - When the 1.8MB File is loaded the CPU usage is about 50 - 60% > (The EditField is only active) > > 4 - I have done this test about 10 - 20 times, and the lowest memory > usage after closing the window > was 102MB. > > > > Note: This is NOT an 'Complain', it is some facts that i have to try > fix in one or another way! > > My test app is available: http://www.okraft.nu/seedit/tmp/ > EditFieldTest-2.zip > > Any Ideas how to fix this problems are welcome!
How are you measuring the memory usage? Does the memory usage grow if you open, close, open, close, ...? If it doesn't then what you're seeing isn't leak but how RB does memory allocation. I believe that RB asks the OS for a block of memory and then sub-allocates from that. An EditField isn't always the best tool for the job. I'm guessing that it has a fair overhead per paragraph and that's what you're seeing. Chris _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
