realbasic-betas.mbox
[Top] [All Lists]

RB Mem Management

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: RB Mem Management
From: desp <xdespx at polbox dot com>
Date: Thu, 6 May 1999 20:37:23 +0200
>
REALbasic-DR NUG wrote:

>But then RB doesn't have any memory managment at all yet, you wouldn't know
>you needed any more till it crashed the machine...

You could check the free memory available with the free ;) freeMem 
plugin, and display a warning when it's too low.
I noticed that with every window I create through my custom showAlert 
routine (the window is .closed at the end) RB leaks about 25 K of memory. 
When using the built-in msgBox(), the memory is lost and regained when 
the msgBox is closed. So proper garbage collection is possible. Pretty 
please... could you Andrew correct the problem?
Also, I noticed some sort of emergency garbage collection. The first time 
the free memory reaches 0 (thanks to the window leaks ;), it springs up 
to 150 K (about half the starting free memory size) But the second time, 
the app just crashes.

Best regards,



Desp Jager
<xdespx at polbox dot com>

"Microsoft: Who do you want to copy today?"


----------------- [ REKLAMA / ADVERTISEMENT ] -------------------
          Twoja nowa podrêczna przyjemno¶æ on-line !!!
          Spotkajmy siê na www.liptonicetea.com.pl !!!
-----------------------------------------------------------------



----------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>