Re: Memory LEAK??

2008-05-29 Thread chongwm
There was talk about this some months back on this list. An article about mem leaks was mentioned too. http://www.fifthgate.org/articles/palm_mem_leaks.html [EMAIL PROTECTED] wrote: Hi, i am allocating a large ammount of memory in my application. will it be de-allocated automatically when i

Memory leak in my app

2008-05-28 Thread Stringer
Subject: Palm Debug console in CW6 crashes Win98 From: [EMAIL PROTECTED] Date: Sat, 14 Oct 2000 20:36:13 +0800 I'm trying to squelch a memory leak in my app. POSE would complain that I have a possible leak at 0xblah, and recommends using 'hd 0' to find it. So, I open up the debug console within

Memory leak error on device

2007-04-02 Thread Durgesh Trivedi
Is it possible to create the log file on the device for to check the memory leak or we can say the on device debugging is possible or not .. I want to check the memory leak on the device rather than on the emulator .Bcz in my code i m working with socket notification so and it is not possible

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-10 Thread Dmitry Grinberg
after line MemHandleFree(fldHnd); try adding FldSetTextHandle((FieldPtr)FrmGetObjectPtr(frmPtr, objectIndex),NULL); On 1/10/07, Ron [EMAIL PROTECTED] wrote: LionScribe thank you for your reply. I have tried to do as you say but I get a SysFatalAlert as follows: --- TestGen

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-10 Thread Ron
Thank you for your reply Dmitry. It got rid of the non-word-align error, but I am getting a different error: -- TestGen (unknown version) called SysFatalAlert with the message: MemoryMgr.c, Line:4384, Free handle. -- Thanks -- For information on using the PalmSource

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-10 Thread Lionscribe
Didn't test, but that may be from freeing the locked handle from a non-editable field. By the way, why do you check for objectIndex, you already have the index. LionScribe -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

Memory Leak with using FrmRemoveObject on a textbox

2007-01-09 Thread Ron
Greetings all, In my program I create textboxes dynamically, when I turn the page I have to remove them. For this I use FrmRemoveObject(). However I get memory leaks when closing the application if I type anything any textbox and turn the the page. I figured it has something to do with

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-09 Thread Lionscribe
Palm OS Reference states: FrmRemoveObject does not free memory allocated to a string in an editable field. Therefore you will first have to call FldGetTextHandle if a valid handle is returned call MemHandleFree on all fields. In addition I suggest removing all objects in reverse, thus lomiting

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-09 Thread Lionscribe
Don't know what's happening, but Yanoff is adding all crazy symbols to my previous post. So please forgive. LionScribe -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Memory Leak with using FrmRemoveObject on a textbox

2007-01-09 Thread Ron
LionScribe thank you for your reply. I have tried to do as you say but I get a SysFatalAlert as follows: --- TestGen (unknown version) called SysFatalAlert with the message: MemoryMgr.c, Line:4372, Non-word-aligned handle. --- Here is the code:

Re: strange memory leak on Palm OS DM functions

2007-01-04 Thread Guilherme C. Hazan
Hi, Calling this after the DmSetDatabaseInfo fixes the problem: while (SysNotifyBroadcast(NULL) == errNone) ; best regards guich www.superwaba.org -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

Re: strange memory leak on Palm OS DM functions

2007-01-02 Thread Guilherme C. Hazan
HiDmitry, Ahhm can you provide a simple code? best regards guich -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: strange memory leak on Palm OS DM functions

2007-01-02 Thread Dmitry Grinberg
SysAppInfoPtr appInfoP,unusedAppInfoP; SysAppInfoPtr mai=SysGetAppInfo(unusedAppInfoP, appInfoP); mai-memOwnerID++; ... Call Dm Calls... ... MemHeapFreeByOwnerID(0,mai-memOwnerID--); i would GUESS this would work in 68k as well... On 1/2/07, Guilherme C. Hazan [EMAIL PROTECTED] wrote:

Re: strange memory leak on Palm OS DM functions

2007-01-01 Thread Lionscribe
Same here on my Treo 650. Every call to DmCreateDatabase and DmSetDatabaseInfo (even if you don't change anything) causes a 120 byte leak. If you do it in a loop, you get a leak for each call. Wonder if it is a NVFS issue? Nothing to do about it, just code accordingly. LionScribe -- For

Re: strange memory leak on Palm OS DM functions

2007-01-01 Thread Guilherme C. Hazan
Hi, Same here on my Treo 650. Every call to DmCreateDatabase and DmSetDatabaseInfo (even if you don't change anything) causes a 120 byte leak. If you do it in a loop, you get a leak for each call. Yep. Wonder if it is a NVFS issue? Surely not, since it uses Dm (data manager), and TT

Re: strange memory leak on Palm OS DM functions

2007-01-01 Thread Dmitry Grinberg
simple solution: set memory owner to a higher value then currentin the appInfo struct, then call the Dm* then call MemHeapFreeByOwnerID() On 1/1/07, Guilherme C. Hazan [EMAIL PROTECTED] wrote: Hi, Same here on my Treo 650. Every call to DmCreateDatabase and DmSetDatabaseInfo (even if you

strange memory leak on Palm OS DM functions

2006-12-31 Thread Guilherme C. Hazan
Hi, I'm trying to figure why the code below produces a memory leak: static Int32 getFreeMem() { UInt32 maxP,freeBytesP; // [EMAIL PROTECTED] MemHeapFreeBytes (0, freeBytesP, maxP); return (Int32)freeBytesP; } DWord PilotMain(Word cmd, Ptr cmdline, Word launchFlags) { if (cmd

re: strange memory leak on Palm OS DM functions

2006-12-31 Thread James Lin
Guilherme C. Hazan wrote: Hi, I'm trying to figure why the code below produces a memory leak: [... snip ...] 1. If you run your code in a loop, does it leak memory on each iteration, or is it a one-time thing? 2. Is setting the database attributes relevant? Why are you manually

re: Simple program Memory leak

2006-12-07 Thread Ron
Thank you -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Simple program Memory leak

2006-12-06 Thread waylander . db
Greetings all, I am very new to Palm OS programming. I am required to work on a project that requires the use of dynamic UI, so I am working through this slowly. My first test at doing a new form causes a memory leak. I am not sure where the prblem lies. Here is the code: - UInt32

re: Simple program Memory leak

2006-12-06 Thread Ron
Just a note: return 0 should be return 0; -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Simple program Memory leak

2006-12-06 Thread Hal Mueller
Recheck the documentation for the function you are using to create the form--specifically the Returns section. You should also check the result before you assume you can pass it on to FrmDrawForm. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see

re: Simple program Memory leak

2006-12-06 Thread James Lin
waylander . db wrote: Greetings all, I am very new to Palm OS programming. I am required to work on a project that requires the use of dynamic UI, so I am working through this slowly. My first test at doing a new form causes a memory leak. I am not sure where the prblem lies. Here

Found X memory leak for my program

2006-10-26 Thread Luca Bertoncello
Hi, list! I have a little problem, with my program... I develop it with gcc on my Linux-PC and test it with POSE. I can start it and use it, without warning or error, but when I exit from this application, POSE say: Found X memory leak for SMS Pro (1.00). Information concerning the leak can

re: Found X memory leak for my program

2006-10-26 Thread Flavio Renga
I had the same problem. In MyFormHandleEvent, this code doesn't cause any leak: ... case frmCloseEvent: // Some operations such save variables, or other things... SaveMyVariables(); // Free memory for the form frmP = FrmGetActiveForm(); FrmEraseForm(frmP);

Re: Found X memory leak for my program

2006-10-26 Thread Robert Moynihan
Luca Bertoncello wrote: Hi, list! I have a little problem, with my program... I develop it with gcc on my Linux-PC and test it with POSE. I can start it and use it, without warning or error, but when I exit from this application, POSE say: Found X memory leak for SMS Pro (1.00). Information

RE: Memory Leak

2006-07-28 Thread Micky MeNeZeS
Thanks a lot cbruner It is done and working very well Regards, Micky -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of cbruner Sent: Thursday, July 27, 2006 11:45 PM To: Palm Developer Forum Subject: Re: Memory Leak Helmut A. Bender wrote: Am Donnerstag

Re: Memory Leak

2006-07-28 Thread Roger Stringer
At 04:16 AM 7/28/2006, you wrote: Subject: Re: Memory Leak From: cbruner [EMAIL PROTECTED] Date: Thu, 27 Jul 2006 14:15:22 -0400 X-Message-Number: 11 Helmut A. Bender wrote: Am Donnerstag, 27. Juli 2006 15:40 schrieb Micky MeNeZeS: I have got following code. [...] It seems you don't

Memory Leak

2006-07-27 Thread Micky MeNeZeS
Hi I have got following code. #include xml.h #define bufferSize = 2048 void SendDefaultPage(int fp) { MemHandle h; Err errno; UInt16 i=0; h = MemHandleNew (bufferSize); StartElement(h, Contact, errno); for (i=0; i1000; i++) { StartElement(h, Item, errno);

Re: Memory Leak

2006-07-27 Thread Helmut A. Bender
Am Donnerstag, 27. Juli 2006 15:40 schrieb Micky MeNeZeS: I have got following code. [...] It seems you don't initialize the buffer you create. So the check in StringCopy if (StrLen(aBuffer) == 0) won't work, since StrLen will get a random value. Set the first byte of the buffer to

Re: Memory Leak

2006-07-27 Thread cbruner
Helmut A. Bender wrote: Am Donnerstag, 27. Juli 2006 15:40 schrieb Micky MeNeZeS: I have got following code. [...] It seems you don't initialize the buffer you create. So the check in StringCopy if (StrLen(aBuffer) == 0) won't work, since StrLen will get a random

Re: Memory Leak Detection tools

2006-06-20 Thread mail4johnv
Is it possible to develop an application which will exactly work as a simulator also catch memory leaks (for 68K and ARM) and other bugs. Thanks John -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Memory Leak Detection tools

2006-06-14 Thread Dmitry Grinberg
the current public version will not. but if there is interest, i can make a version to do that. On 6/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks for the reply, but now I want to know whether UDMH will pin point where the leaks are, just like in IBM's Rational Purify for Windows.

Re: Memory Leak Detection tools

2006-06-14 Thread Thomas Damme
Dmitry Grinberg schrieb: the current public version will not. but if there is interest, i can make a version to do that. Yes, of course. Especially for exisiting apps it would be a good way to check if and where memory leaks are. Since the Simulator does not report that as good as the

Re: Memory Leak Detection tools

2006-06-14 Thread Dmitry Grinberg
but! this will NOT run on the simulator. only a real device with an arm processor. On 6/14/06, Thomas Damme [EMAIL PROTECTED] wrote: Dmitry Grinberg schrieb: the current public version will not. but if there is interest, i can make a version to do that. Yes, of course. Especially for

Memory Leak Detection tools

2006-06-13 Thread mail4johnv
Hi All, I would like to know whether there is any commercial memory leak detection tool for Palm OS 5 and above. Awaiting a speedy response. Thanks in advance John -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support

Re: Memory Leak Detection tools

2006-06-13 Thread Dmitry Grinberg
memory leak detection tool for Palm OS 5 and above. Awaiting a speedy response. Thanks in advance John -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http

Re: Memory Leak Detection tools

2006-06-13 Thread mail4johnv
Thanks for the reply, but now I want to know whether UDMH will pin point where the leaks are, just like in IBM's Rational Purify for Windows. This is because I know that my application is leaking lots of memory and so now I want to know from where. Thanks John -- For information on using

Re: Memory Leak

2006-05-28 Thread Roger Stringer
At 04:15 AM 5/28/2006, you wrote: Subject: Re: Memory Leak From: Carlos Gonzalez [EMAIL PROTECTED] Date: Sat, 27 May 2006 18:31:44 - X-Message-Number: 10 Thanks everyone for all your inputs. Here is the final code that works fine with no more memory leak. Thanks againn everyone. textH

Re: Memory Leak

2006-05-27 Thread hv reddy
Carlos, Try using with FldSetTextPtr/FldGetTextPtr as per your requirement instead of usingFldSetTextHandle. Then there won't be any memory leaks.Regards, HarshaCarlos Gonzalez [EMAIL PROTECTED] wrote: Eduardo,Here is part of my code and it is the only place where I use MemHandleLock and

RE: Memory Leak

2006-05-27 Thread Roger Stringer
At 04:16 AM 5/27/2006, you wrote: Subject: RE: Memory Leak From: Stefan Mohr [EMAIL PROTECTED] Date: Fri, 26 May 2006 11:33:23 -0700 X-Message-Number: 22 You can try debugging your code using the Simulator and keep an eye on the dynamically allocated variables, but you may find there's actually

Re: Memory Leak

2006-05-27 Thread Roger Stringer
At 04:16 AM 5/27/2006, you wrote: Subject: Re: Memory Leak From: Carlos Gonzalez [EMAIL PROTECTED] Date: Fri, 26 May 2006 20:05:45 - Here is part of my code and it is the only place where I use MemHandleLock and unlock.. that is it. Boolean CalculateRisk() { ControlType* ctl; Boolean

Re: Memory Leak

2006-05-27 Thread Carlos Gonzalez
Thanks everyone for all your inputs. Here is the final code that works fine with no more memory leak. Thanks againn everyone. textH = FldGetTextHandle(GetObjectPtr(MainFieldRisk)); if (!textH) { textH = MemHandleNew(8); } str = MemHandleLock(textH); doubleToStr(str, PI, 2); MemHandleUnlock(textH

Memory Leak

2006-05-26 Thread Carlos Gonzalez
Hello everyone, I geting an error message when I click on the application icon of the emulator after I ran my application, error that reads that there is a memory leak. How can I detect this errror and correct it. Thanks, Carlos -- For information on using the PalmSource Developer Forums

RE: Memory Leak

2006-05-26 Thread Stefan Mohr
appear to exist - it may have something to do with the way the emulator itself shuts down. -Original Message- From: Carlos Gonzalez [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 11:28 AM To: Palm Developer Forum Subject: Memory Leak Hello everyone, I geting an error message when I

RE: Memory Leak

2006-05-26 Thread Carlos Gonzalez
thanks, the problem is that my debuger fails when try to launch, this started happening just today... I have no idea why. Also when I run my application in my palm, it gives me this error: MemoryMgr.C, Line 4384, Free Handle . Carlos -- For information on using the PalmSource Developer Forums,

Re: Memory Leak

2006-05-26 Thread Eduardo Orea
Forum Subject: Memory Leak Hello everyone, I geting an error message when I click on the application icon of the emulator after I ran my application, error that reads that there is a memory leak. How can I detect this errror and correct it. Thanks, Carlos -- For information on using the PalmSource

Re: Memory Leak

2006-05-26 Thread Eduardo Orea
Carlos. Could you try to debug this a little more, so can help you better. This could be generated by a lot of different things, i.e. for overFreeing a memory chunk, or an iexisten one, or you could be trying to free a MemHandle used to store the result of DmNewRecord() after calling

Re: Memory Leak

2006-05-26 Thread Carlos Gonzalez
Eduardo, Here is part of my code and it is the only place where I use MemHandleLock and unlock.. that is it. Boolean CalculateRisk() { ControlType* ctl; Boolean handled = true; MemHandle textH; char*str; double PI; ... PI += -1.236215274 - 2.598564382 - 2.119863737 +

Re: Memory Leak

2006-05-26 Thread Eduardo Orea
Carlos. You should first call MemHandleNew(size) where size should be big enougth to store the result of doubleToStr(), this may be also the problem of the memory leak you talked before, because you had a handle that point to a random address of memory that is not allocated for your use

Re: Memory Leak

2006-05-26 Thread Del Ventruella
with a specific data entry screen function. By this method, you can, perhaps, directly identify the buggy code. There is more in prior threads regarding this memory leak problem and how to debug it. I must admit the methods suggested were of no use to me in practical terms as they seemed

Re: Memory Leak

2006-05-26 Thread Carlos Gonzalez
Eduardo thanks, this is my original code but, still giving me the same error.. It alway gives the erro when I run it twice the function... the second time gives me this error:.. MemoryMgr.c, Line 4384, Free Handle... ... PI += -1.236215274 - 2.598564382 - 2.119863737 ; PI = exp(PI); PI = (1.0

Re: Memory Leak

2006-05-26 Thread Jürgen Wind
, you can, perhaps, directly identify the buggy code. There is more in prior threads regarding this memory leak problem and how to debug it. I must admit the methods suggested were of no use to me in practical terms as they seemed to indicate the need to connect hexadecimal memory addresses

RE: Memory Leak

2006-05-26 Thread Jason Lynn
Subject: Re: Memory Leak Eduardo thanks, this is my original code but, still giving me the same error.. It alway gives the erro when I run it twice the function... the second time gives me this error:.. MemoryMgr.c, Line 4384, Free Handle... ... PI += -1.236215274 - 2.598564382 - 2.119863737 ; PI = exp

Re: Memory Leak

2006-05-26 Thread Eduardo Orea
Carlos. Here's the big deal, textH should exist as long as your text field so textH has to be a global or an arg to pass to your functions, so I'm guessing that you run this funtion on frmOpenEvent or on ctlSelectEvent (i.e. button tap), so you have to deal with it when you get an appStopEvent

Memory Leak

2006-02-17 Thread cp
Hi All, I am running an application which is tested on valgrind in linux to be free of memory leak. I reviewed the code, and found all the MemPtrNew memories are freed and all the new objects are deleted. But in palm while running my application, the heap memory is constantly decreasing

external card startup memory leak

2006-02-04 Thread Anning Chen
I have xyz.prc in my external SD card under /PALM/Launcher. The app launches, runs and exits ok, but I noticed a slight memory leak each time the application opens and exits. The app doesn't not have any mem leak at all when running in Palm's internal memory. It only happens when it's

Re: FrmAlert causing a memory leak?

2005-12-01 Thread Luc Le Blanc
Logan Shaw wrote: Luc Le Blanc wrote: During a lengthy drawing operation, I allow the user to abort this drawing tapping on the screen. I detect this action with an occasional check to EvtSysEventAvail( true ). When I detect this, I ask user confirmation with a FrmAlert. Alas, POSE reports 2

FrmAlert causing a memory leak?

2005-11-29 Thread Luc Le Blanc
During a lengthy drawing operation, I allow the user to abort this drawing tapping on the screen. I detect this action with an occasional check to EvtSysEventAvail( true ). When I detect this, I ask user confirmation with a FrmAlert. Alas, POSE reports 2 memory leaks under OS 3.5 or 4.1. The

Re: FrmAlert causing a memory leak?

2005-11-29 Thread Logan Shaw
Luc Le Blanc wrote: During a lengthy drawing operation, I allow the user to abort this drawing tapping on the screen. I detect this action with an occasional check to EvtSysEventAvail( true ). When I detect this, I ask user confirmation with a FrmAlert. Alas, POSE reports 2 memory leaks under

Is this a memory leak that I want to keep?

2005-11-20 Thread Del Ventruella
I find myself facing one, last memory leak indicated by the emulator to be tied to a record creation function within a database. Of course, if this is merely a matter of the emulator identifying that I am allocating memory to a couple of records and not releasing it back to the system

Re: Is this a memory leak that I want to keep?

2005-11-20 Thread Del Ventruella
Should Read: I find myself facing one, last, memory leak indicated by the emulator to be tied to a database record creation function. Of course, if this is merely a matter of the emulator identifying that I am allocating memory to a couple of records and not releasing it back to the system

Re: Is there any easy way to find the cause of a memory leak

2005-11-11 Thread cp
Hi Logan, Build a version of your app with debug symbols How to do that in codewarrior ? --cp -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Is there any easy way to find the cause of a memory leak

2005-11-11 Thread Michal Seliga
in project settings switch off optimalizations and inlines, and switch on 'generate a6 stack frames' and 'generate macsbug debug symbols' with this you will have much better possibilities to debug cp wrote: Hi Logan, Build a version of your app with debug symbols How to do that in

re: Memory Leak with FrmGotoForm?

2005-10-04 Thread Harry
yep, I have seen this before. Are you doing FrmEraseForm and FrmDeleteForm before switching to the new form? This is how I implement form transitions in general: -- fP = FrmGetActiveForm(); if ( fP ) { FrmEraseForm( fP ); FrmDeleteForm( fP ); } FrmGotoForm( formID

Memory Leak with FrmGotoForm?

2005-09-30 Thread Anning Chen
Hi, I'm detecting a mem leak of exactly 432 bytes each time I go from one of my forms A to another form B and then back to A. It looks like that form B is leaking the 432 bytes of memory but I have commented out almost all the code except for the line UInt16 currentForm = someFormID; and the

Re: Memory Leak with PODS 1.2

2005-09-07 Thread Jeetu
Hi, i m new to PODS can u tell me any way how to Find the Memory Leak problem With PODs -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Memory Leak with PODS 1.2

2005-09-07 Thread Jürgen Wind
Jeetu schrieb: Hi, i m new to PODS can u tell me any way how to Find the Memory Leak problem With PODs PalmOS Emulator will tell you if your program leaks memory. Run it in Emulator and leave your program, then Emulator will tell you if your program didn't free any memory chunks. Jürgen

Re: Memory Leak with PODS 1.2

2005-09-07 Thread Logan Shaw
Jeetu wrote: i m new to PODS can u tell me any way how to Find the Memory Leak problem With PODs If you can run your program under the Emulator (NOT the simulator!!!), the Emulator will detect memory leaks when the application exits. If you look in the Emulator's log file, it will show

Re: Memory Leak with PODS 1.2

2005-09-07 Thread Jeetu
Thanx for ur Kind attention, Here is what i m exactly doing, I want to fill my ListBox with some values from DB, so i have created a dynamic array that will contain the values as per the no. of records in DB.Then i m inserting each of those values from array inside the ListBox. Initially my

Re: Memory Leak with PODS 1.2

2005-09-07 Thread Jeetu
Thanx for ur Kind attention, Here is what i m exactly doing, I want to fill my ListBox with some values from DB, so i have created a dynamic array that will contain the values as per the no. of records in DB.Then i m inserting each of those values from array inside the ListBox. Initially my

Re: Memory Leak, need help

2005-07-26 Thread Christian Lindemeier
this. 0.000: WARNING: 0.020: WARNING: Memory Leaks 0.020: WARNING: 0.020: WARNING: Begin Memory Leak

Memory leak problem

2005-07-25 Thread vamshi
I get this problem each time I exit my application 'Relocatable chunk leaked at' this happens at 'SysAppExit'. please help me in over comming this. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: Memory leak problem

2005-07-25 Thread Jagat Mahapatra
Free all heap memories before exiting -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vamshi Sent: Monday, July 25, 2005 7:13 PM To: Palm Developer Forum Subject: Memory leak problem I get this problem each time I exit my application 'Relocatable chunk

Re: Memory leak problem

2005-07-25 Thread Scott Erickson
If you allocate memory, you have to deallocate it before you leave your app. -- Scott Erickson Software Engineer, FB-4, Inc. [EMAIL PROTECTED] vamshi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I get this problem each time I exit my application 'Relocatable chunk leaked at'

Memory Leak, need help

2005-07-25 Thread vamshi
: 0.020: WARNING: Begin Memory Leak Dump 0.020: WARNING: 0.060: Relocatable chunk leaked at 0x25FC, size = 4 0.060: Chunk allocated by: 0.060: AllocateLines 0.060: FldSetText 0.060: InitTextItem 0.060

Re: Memory Leak, need help

2005-07-25 Thread Adam Ernst
Looks like you aren't deallocating the current pointer in the field when you assign a new handle to it. Adam On Jul 25, 2005, at 10:39 PM, vamshi wrote: hi, I get 'Relocatable chunk leaked at' after my application exit from PilotMain, The log file shows that the leak happened at a

Re: memory leak reported by emulator

2005-07-20 Thread Michal Seliga
Jeff Ondich wrote: Many OS 4 devices only had 256K for the dynamic heap -- the larger dynamic heap sizes didn't really start appearing until Palm OS 5. If you need that much storage, it might be worth only supporting OS 5 and later. Is there a way to test for the available heap size?

Re: memory leak reported by emulator

2005-07-19 Thread Michal Seliga
Henk Jonas wrote: Jeff Ondich wrote: Yes, POSE gives me the memory leak error during exectuion. While waiting for a computation that usually takes a second or two, I get this: Found 1855 memory leaks for [my application]. Information concerning the leaks can be found in the log file

Re: memory leak reported by emulator

2005-07-19 Thread Michal Seliga
Maybe you app is exting at this moment. Question is just why... because when you use new and there is no free memory it just exits your application. i fought a lot with this... to fix it you must override new operator so it won't cause exception but return NULL instead (or catch the

Re: memory leak reported by emulator

2005-07-19 Thread Jeff Ondich
Michal--that's a good idea, and I have now played quite a bit with the new operator today. But I'm having trouble with operator new[] and delete[]. I have found lots of advice on-line on how to override new and delete, but I haven't found any samples of how to override new[] and delete[]

Re: memory leak reported by emulator

2005-07-19 Thread Ben Combee
At 06:22 PM 7/19/2005, you wrote: Michal--that's a good idea, and I have now played quite a bit with the new operator today. But I'm having trouble with operator new[] and delete[]. I have found lots of advice on-line on how to override new and delete, but I haven't found any samples of how

Re: memory leak reported by emulator

2005-07-19 Thread Jeff Ondich
Ben Combee wrote: Many OS 4 devices only had 256K for the dynamic heap -- the larger dynamic heap sizes didn't really start appearing until Palm OS 5. If you need that much storage, it might be worth only supporting OS 5 and later. Thanks, Ben. That's what I need to know. -- For

Re: memory leak reported by emulator

2005-07-19 Thread Jeff Ondich
Many OS 4 devices only had 256K for the dynamic heap -- the larger dynamic heap sizes didn't really start appearing until Palm OS 5. If you need that much storage, it might be worth only supporting OS 5 and later. Is there a way to test for the available heap size? -- For information on

memory leak reported by emulator

2005-07-18 Thread Jeff Ondich
leaks are not, in fact, leaking in the usual sense--that is, there are deletes for every new. The code in question passes through other memory leak testers (e.g. Visual C++) without problem. My guess is that there are limits of some kind as to the number of active memory allocations you can have

Re: memory leak reported by emulator

2005-07-18 Thread Jerome Chapdelaine
--that is, there are deletes for every new. The code in question passes through other memory leak testers (e.g. Visual C++) without problem. My guess is that there are limits of some kind as to the number of active memory allocations you can have on OS 4, and that I'm exceeding them. It's true that my code, intended

Re: memory leak reported by emulator

2005-07-18 Thread Jeff Ondich
Thanks, Jerome. I always assume these things are my own fault, but this one has me confused. It's claiming I have a memory leak before the objects in question even go out of scope, right in the middle of allocating some other object. It may be that I'm clobbering a pointer and POSE is smart

Re: memory leak reported by emulator

2005-07-18 Thread Jerome Chapdelaine
One thing I don't understant... POSE reports memory leaks after your application has terminated (before going back to the launcher). Are you saying you get the memory leak message -during- your application execution? Jerome Jeff Ondich wrote: Thanks, Jerome. I always assume these things

Re: memory leak reported by emulator

2005-07-18 Thread Jeff Ondich
Yes, POSE gives me the memory leak error during exectuion. While waiting for a computation that usually takes a second or two, I get this: Found 1855 memory leaks for [my application]. Information concerning the leaks can be found in the log file. And indeed, the log file shows lots

Re: memory leak reported by emulator

2005-07-18 Thread Henk Jonas
Jeff Ondich wrote: Yes, POSE gives me the memory leak error during exectuion. While waiting for a computation that usually takes a second or two, I get this: Found 1855 memory leaks for [my application]. Information concerning the leaks can be found in the log file. And indeed, the log

Is there any easy way to find the cause of a memory leak

2005-06-06 Thread Salvador Buendia
I'm using CodeWarrior 9 and PalmOs Emulator and when I exit my program the emulator warn me of a memory leak. I used to solve this commenting functions or reading my code but I never understood well what was the information that the emulator was giving me about the memory leak. Now, I'm having

re: Is there any easy way to find the cause of a memory leak

2005-06-06 Thread roderick young
Your classical approach is good, to read your code and comment out portions to narrow down the failure. That's what I would do first. However, failing that, I might try printing out a line to a log file every time I allocated memory, giving the address, and every time I freed memory, again

Re: Is there any easy way to find the cause of a memory leak

2005-06-06 Thread Logan Shaw
Salvador Buendia wrote: I'm using CodeWarrior 9 and PalmOs Emulator and when I exit my program the emulator warn me of a memory leak. I used to solve this commenting functions or reading my code but I never understood well what was the information that the emulator was giving me about the memory

Re: Memory leak using VFS

2005-02-21 Thread Ralph Curtis
Roel Wijmans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I seem to be having a memory leak when running a database of a memory card. The emulator doesn't pick it up though. All is running fine if the database runs of the device, but as soon as i run it of the memory card, it i

Memory leak using VFS

2005-02-18 Thread Roel Wijmans
I seem to be having a memory leak when running a database of a memory card. The emulator doesn't pick it up though. All is running fine if the database runs of the device, but as soon as i run it of the memory card, it i start loosing memory. I can't figure out what i'm doing wrong.. I'm

Re: Any known memory leak with Treo 650?

2005-02-14 Thread Tony Yat-Tung Cheung
Hi Ralph, I haven't really tested that. But I don't think I should use NetLibClose(libRefNum, true) because there could be other networking applications running. Another extreme stress testing is that if I create a loop of 1000 times around the NetLibSocketOpen() and NetLibSocketClose(),

Re: Any known memory leak with Treo 650?

2005-02-12 Thread Tony Yat-Tung Cheung
Hi, I've found the following codes will cause a 1KB memory leak (Dynamic RAM Heap) on a real Treo 650 device (GSM unlocked version). The codes simply opens the NetLib, creates a socket, closes the socket and then closes the NetLib. However, every time the codes are run, it reduces the free

Re: Any known memory leak with Treo 650?

2005-02-12 Thread Ralph Curtis
Tony Yat-Tung Cheung [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've found the following codes will cause a 1KB memory leak (Dynamic RAM Heap) on a real Treo 650 device (GSM unlocked version). The codes simply opens the NetLib, creates a socket, closes the socket

Any known memory leak with Treo 650?

2005-02-10 Thread Tony Yat-Tung Cheung
with the T3 and Treo 600 with no such problem. I also tested the application on the Palm Emulator (OS 4.0) with no memory leak detected. I am also testing it on a real Treo 650 device using GPRS connection. I also found that when I close the GPRS connection, all those lost heap memories (1KB each

Re: Memory leak in T5?

2005-02-01 Thread Regis St-Gelais
Drew Haninger [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] here's the whole function, just notice the code that is commented... ot_FntDefineFontreplaces FntDefineFont (ot stands for OliveTree)

  1   2   3   4   >