New topic: Memory Leak with REALBuildString RB 2009 5.1MacOS X
<http://forums.realsoftware.com/viewtopic.php?t=32456> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message louis_ Post subject: Memory Leak with REALBuildString RB 2009 5.1MacOS XPosted: Thu Feb 11, 2010 6:47 am Joined: Thu Feb 11, 2010 6:33 am Posts: 1 Hi, I'am new with the RB Plugin SDK. I get a memory leak by calling REALBuildString on MacOS. I found it with 'Instruments': # Category Event Type Timestamp RefCt Address Size Responsible Library Responsible Caller 0 Malloc 32 Bytes Malloc 00:04.299 1 0x11424d0 32 rbframework.dylib string::AllocateBuffer(unsigned long, void* (*)(unsigned long)) A dummy C code to trace it: myFunction ( ) { REALstring yy; yy = REALBuildString ( "hello" , strlen ("hello") ); -> generate a memory leak with 32 bytes REALLockString ( yy ); REALMessageBox(yy); REALUnlockString ( yy ); } Can somebody confirm it's or let's me know what I am doing wrong with the RB Plugin SDK.. Thank's Louis Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
