Rev Classic Crashing

Geoff Canyon gcanyon at inspiredlogic.com
Sun Apr 14 10:39:00 EDT 2002


At 11:10 PM -0700 4/13/02, Karl Petersen wrote:
>If Rev allocates more and more memory to itself the longer it runs, won't it inevitably crash? To test this, I built a MacPPC app (20MB memory allocation, dynamic memory allocation tested both checked and unchecked) whose main routine saves 100 images to jpegs. Each time it runs that routine, the app grabs 15MB more RAM, until eventually it has allocated about 150MB to itself. It always crashes when the Mac's free RAM drops below 125MB. (I.1.1, MacOS 9.1, 512MB physical RAM)
>
>Isn't it inevitable the app will crash when either 1) it can't allocate more memory to itself; or 2) it starves the Mac OS/other apps of memory? What am I missing? This just doesn't sound right.

Yes, if you continually allocate new resources, you will eventually run out of memory. If you reuse resources, or delete old ones and create new ones, your memory use should hover around a certain amount. So it depends on how your code is written. Can you post the code you're using?
-- 

regards,

Geoff Canyon
gcanyon at inspiredlogic.com



More information about the use-livecode mailing list