New topic in Getting Started: Memory usage and applescripts
healer - Thu Mar 27, 2008 11:12 am <http://forums.realsoftware.com/viewtopic.php?t=21474> Hi there First of all, I'm quite new to realbasic, mac development and applescripts. It started all with a lot of memory problems in my rb app. So I used runtime.ObjectCount and runtime.MemoryUsed to dertermine where the memory is leaking. I wrote a little tool to log the object count and memory usage to a listbox in a separate window. But i recognized, the memory usage of this tool goes up and up. (probably just because the listbox getting bigger and bigger, but even then it was far to much memory usage) Anyway, I decided, I need a solution that doen't need a lot of memory itself. So tried it with a little applescript. This script just passes the given string to the textwrangler and writes it to the next line. Then I use this script in a little sample project. It has one window with one button, the buttons action event passes the object count and memory usage to the applescript. Sadly, the memory usage still go up and up. Not just a bit, it goes up around 1MB every 15 clicks. Is this normal? Can anyone tell me why the memory grows so extrem? Am I doing something wrong? (Missunderstanding the hole situation) Here you can download the sample project file: http://testing.pixl-design.ch/MemTestWithApplescript.rbp Thanks for any help and pls excuse my english. Healer -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
