Re: Memory leaks finding objects of a particular size

2008-05-28 Thread Steve Achelis
Create a map file: Project Settings, Linker, 68K Linker, Generate Link Map. This creates a *.map file in your project folder. Open the file and look for the data entries. This shows every variable and its size. The main problem with this approach is if you have a pointer that you new() 16 bytes

Memory leaks finding objects of a particular size

2008-05-28 Thread Stuart A. Malone
I've got a memory leak in my app, which consists of a single object, 16 bytes long, that is always allocated at the same memory location. I'm having the devil of a time figuring out where the leak is coming from, especially since it only seems to occur under Gremlins. Generating what seems to

Memory Leaks

2008-05-28 Thread Labhesh Patel
I have a problem with memory leak when I exit my application. I am using the emulator configured for Palm V and RAM size of 1024kB. How can I find out the chunks which are owned by my application after exiting. This problem does not occur with Palm VII configured emulator. I am attaching the

Re: Debugging and finding memory leaks

2008-02-20 Thread Aaron . Hansen
you more specific info. However the information you need is on that site. Hope that helps, Aaron Hansen [EMAIL PROTECTED] wrote on 02/19/2008 03:37:04 PM: Hi! Is there a way to find memory leaks in PalmOS apps? And also, how can I do to debug my code? I mean, when an error occurs, I

Debugging and finding memory leaks

2008-02-19 Thread Leandro Pelorosso
Hi! Is there a way to find memory leaks in PalmOS apps? And also, how can I do to debug my code? I mean, when an error occurs, I get an emulator windows with a debug button, but when I click it, well, nothing happens. I'm using garnet OS development suite. thanks a lot! vertexar

re: Debugging and finding memory leaks

2008-02-19 Thread Ekra
Hi, To debug your code you should be in debug mode in your code. When your Emulator shows some error with debug button you can just click it and your emulator will return to your code were the actual problem exists. I am using codewarroir but all IDE has the same way todebug i guess. Regards

Re: Tracking Memory Leaks

2007-01-22 Thread Durgesh Trivedi
Hi I actually work With PODS a open source for palm development so i not know much abt CW and emulator come with PODS and You can download it frm the palm site and u can also dowload the ROM for 4.0 version from the palmsource site .And i dont know weather the 4.0 emulator ROM in built come

re: Tracking Memory Leaks

2007-01-22 Thread Alexander R. Pruss
I tend to do it by disabling code until the leak disappears, and then figuring out which part of the code disabling did the trick. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Tracking Memory Leaks

2007-01-22 Thread Bruce Waters
There are several things that can be done. 1. Examine the log to see if the chunk contents are recognisable - that might tell you what part of your code is generating the chunks. 2. Look at the size of the chunks, and go through your code to see where you allocate heap storage for structs,

re: Tracking Memory Leaks

2007-01-21 Thread Durgesh Trivedi
You can check your memory leak in the palm emultor 4.0 at the run time it gives all the memory leak and their address and show details in the log file -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Memory leaks

2006-07-04 Thread mail4johnv
I want to know whether there is any memory leaks caused if I call File access functions (VFSFileOpen, VFSFileRead etc)from the ARM code? Thanks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Memory leaks

2006-07-04 Thread Dmitry Grinberg
: I want to know whether there is any memory leaks caused if I call File access functions (VFSFileOpen, VFSFileRead etc)from the ARM code? Thanks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best

Re: Memory leaks

2006-07-04 Thread mail4johnv
Is it possible what is explained here http://news.palmos.com/read/messages?id=42853 Thanks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Memory Leaks Log with Simulator and CW

2006-06-09 Thread Greg
When I used POSE with CW I would get memory leak descriptions in a log file when I exited POSE. I am using Simulator now and I am not sure how to get the Simulator to report memory leaks in a log file. Can anyone help me setup CW and the Simulator to log memory leaks? Thanks Greg

Re: Memory Leaks Log with Simulator and CW

2006-06-09 Thread Michal Seliga
if you use 5.4 debug garnet simulator it will report you memory leaks - but only that they happened, not where. but still better then nothing i still debug on emulator when possible because simulators can't even compete with it. Greg wrote: When I used POSE with CW I would get memory leak

Re: Memory Leaks Log with Simulator and CW

2006-06-09 Thread Greg
Michal, Thank you for your reply. What is your favorite ROM to use with POSE? Are there any OS 5 ROMs that you know of that work on POSE? Thanks Greg -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Memory Leaks Log with Simulator and CW

2006-06-09 Thread Dean Gahlon
On Fri, 9 Jun 2006, Greg wrote: Michal, Thank you for your reply. What is your favorite ROM to use with POSE? Are there any OS 5 ROMs that you know of that work on POSE? Thanks Greg There are _NO_ OS5 ROMs that will work with POSE. POSE emulates only OS4 and earlier devices. -- For

Re: Memory leaks

2006-01-06 Thread John
Thanks Michal for your response, But what my problem is that I downloaded some PalmOS application. When I tried to run it on the Emulator it show an Alert Message saying that PlamOS 5.0 or greater is required to run this application. Then I tried to run this application on PalmOS Garnet

Re: Memory leaks

2006-01-06 Thread Tinnus
systemmgr.c is the OS file. Do a search in the source for any chunks 28 bytes-long.2006/1/6, John [EMAIL PROTECTED]: Thanks Michal for your response, But what my problem is that I downloaded some PalmOS application. When I tried to run it on theEmulator it show an Alert Message saying that PlamOS

RE: Memory leaks

2006-01-06 Thread Bonnie.Zeller
When I am testing on the emulator and have memory leaks, I can see where the leaks are by looking at the log file which is written tothe folder where the emulator is installed. I have never tested with a simulator, but maybe it has a similar log file that will give you details on your

Re: Memory leaks

2006-01-06 Thread 孟 飞
palm-dev-forum@news.palmos.com Subject: Re: Memory leaks Date:Fri, 6 Jan 2006 16:38:23 -0200 systemmgr.c is the OS file.br br Do a search in the source for any chunks 28 bytes-long.brbrdivspan class=gmail_quote2006/1/6, John lt;a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/agt;:/spanblockquote

Re: Memory leaks

2006-01-05 Thread Michal Seliga
try your application on palm emulator with debug rom. it will give ypou memory leaks in list with place when it was allocated [EMAIL PROTECTED] wrote: I am new to PalmOS development. I am writing an application for PalmOS for 5.0 and above in c++. Now I got some memory leaks which has

Memory leaks

2006-01-04 Thread mail4johnv
I am new to PalmOS development. I am writing an application for PalmOS for 5.0 and above in c++. Now I got some memory leaks which has to be fixed. I tried to use PalmOS Garnet Simulator 5.4. It is saying some memory leaks are there but I want to exactly know where are the leaks comming form

Re: memory leaks

2004-08-15 Thread Roger Stringer
Subject: Re: memory leaks From: Merav Rubinstein [EMAIL PROTECTED] Date: Sat, 14 Aug 2004 13:10:13 - my code is: in the handle event, open form: for(i = 0; i 50; i++) { statuslist[i]=MemPtrNew(sizeof(Char)*STATUS_LENGH); StrCopy(statuslist[i],); } handle event, close form: for(i = 0; i

Re: memory leaks

2004-08-14 Thread Merav Rubinstein
I read that, but the article in highway1 is not available... my code is: in the handle event, open form: for(i = 0; i 50; i++) { statuslist[i]=MemPtrNew(sizeof(Char)*STATUS_LENGH); StrCopy(statuslist[i],); } handle event, close form: for(i = 0; i MAX_LEN; i++) {

Re: memory leaks

2004-08-14 Thread Krzysztof Kowalczyk
On Sat, 14 Aug 2004 13:10:13 -, Merav Rubinstein [EMAIL PROTECTED] wrote: I read that, but the article in highway1 is not available... Well, I have no control over that - at the time I linked to the article it was available. Anyway, my contribution was really 'my way part of the article. I

Re: memory leaks

2004-08-14 Thread Keith Rollin
. Unfortunately it only tells you the source file where the leak occured but doesn't tell you the exact line. You still have a lot of guessing to do. I'd like to suggest three alterations to this paragraph. First, finding memory leaks with Poser does not require a debug ROM. A release ROM downloaded

Re: memory leaks

2004-08-14 Thread Krzysztof Kowalczyk
On Sat, 14 Aug 2004 15:36:40 -0700, Keith Rollin [EMAIL PROTECTED] wrote: I'd like to suggest three alterations to this paragraph. ... Thanks for setting me straight, Keith. I didn't know those details. As to fixing the article - I don't feel very motivated - I don't maintain this site

memory leaks

2004-08-13 Thread Merav Rubinstein
I have a note that say that I can find the memory leaks in a log file, but I don't understand a thing from it...Can I know what's the problem from the log file? Thank you. Merav -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev

Re: memory leaks

2004-08-13 Thread Tim Kostka
and similar pairs. -- Tim Merav Rubinstein [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a note that say that I can find the memory leaks in a log file, but I don't understand a thing from it...Can I know what's the problem from the log file? Thank you. Merav

Re: memory leaks

2004-08-13 Thread Krzysztof Kowalczyk
On Fri, 13 Aug 2004 21:31:28 -, Merav Rubinstein [EMAIL PROTECTED] wrote: I have a note that say that I can find the memory leaks in a log file, but I don't understand a thing from it...Can I know what's the problem from the log file? I once wrote an article about a better way to detect

Re: Memory leaks

2004-06-20 Thread Cory Pratt
Not sure, but you might make sure you are calling FrmCloseAllForms before your program exits. Also, make sure you're not setting handled to true for frmCloseEvent's. If you're using FrmPopupForm, you should also make sure you are returning to the correct form with FrmReturnToForm(0). Hope that

Memory leaks

2004-06-18 Thread JAMES S HAINES
Can anyone give me a lead as to what might be causing these leaks. I think it might have to do with loading the form handled by frmCogoFile_HandleEvent since none of the controls on the form work after it is drawn. The debugger gets to the end of this function then hangs up. I've compared it

Re: memory leaks - why debug them?

2004-06-13 Thread Peter Hamilton-Scott
Ornstein, Adam wrote: I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory leaks? thanks for all responses! Adam, I see like

Re: memory leaks - why debug them?

2004-06-13 Thread Marc A. Lepage
Ornstein, Adam wrote: I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory leaks? thanks for all responses! One reason hasn't yet

Re[2]: memory leaks - why debug them?

2004-06-13 Thread Roberto Machorro
Hi Sunday, June 13, 2004, 3:37:45 PM, you wrote: Ornstein, Adam wrote: I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory

Re: memory leaks - why debug them?

2004-06-11 Thread Adrien Regimbald
in their programs? The OS cleans up the extra junk anyways. Is there OA a real technical reason that we would need to get rid of all memory leaks? OA thanks for all responses! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support

Re: memory leaks - why debug them?

2004-06-11 Thread Trevor Powell
I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory leaks? I know you've asked only for technical reasons, but I'd like

memory leaks - why debug them?

2004-06-10 Thread Ornstein, Adam
I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory leaks? thanks for all responses! -- For information on using the Palm

Re: memory leaks - why debug them?

2004-06-10 Thread Alan Ingleby
Ornstein, Adam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory

Re: memory leaks - why debug them?

2004-06-10 Thread Tim Kostka
Well, it maximizes the amount of memory available for your application. -- Tim Kostka Ornstein, Adam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk

Re: memory leaks - why debug them?

2004-06-10 Thread jimrandomh
Ornstein, Adam wrote: I have an odd developer question. Why should developers care about memory leaks in their programs? The OS cleans up the extra junk anyways. Is there a real technical reason that we would need to get rid of all memory leaks? Some memory leaks correspond to initialization

the effects of memory leaks

2004-05-20 Thread Ornstein, Adam
My question is for me a theoretical one, but Im sure it has a real answer. What would happen if a Palm app was released with memory leaks when the program exited. How would this affect the palm? Thanks! -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: the effects of memory leaks

2004-05-20 Thread Aaron Ardiri
My question is for me a theoretical one, but Im sure it has a real answer. What would happen if a Palm app was released with memory leaks when the program exited. How would this affect the palm? current versions of palmos actually clean up your mess for you. it is recommended you fix your

RE: the effects of memory leaks

2004-05-20 Thread Ornstein, Adam
What about older versions? Adam E. Ornstein Information Resource Specialist [EMAIL PROTECTED] -Original Message- From: Aaron Ardiri [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:16 PM To: Palm Developer Forum Subject: Re: the effects of memory leaks My question is for me

RE: the effects of memory leaks

2004-05-20 Thread Ornstein, Adam
Thanks, I was just analyzing someone else's code and couldn't figure out what I should tell them about the memory leak issue. -Original Message- From: Aaron Ardiri [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 1:21 PM To: Palm Developer Forum Subject: Re: the effects of memory

Re: the effects of memory leaks

2004-05-20 Thread Aaron Ardiri
Thanks, I was just analyzing someone else's code and couldn't figure out what I should tell them about the memory leak issue. run it on POSE :) it reports memory leaks well - and, even writes a log for you to figure out where they are :) should definately fix them :) --- Aaron Ardiri PalmOS

memory leaks...

2004-04-26 Thread Ornstein, Adam
Hey, Does anyone have any suggestions as to where would be a good place to begin searching for memory leaks? I assume that they are similar to de-allocated pointers, but I was wondering if anyone might be able to give me some pointers. Thx -- For information on using the Palm Developer

Re: memory leaks...

2004-04-26 Thread Dave Lippincott
use the information provided by Pose to locate the section of code that produced the leak. - Original Message - From: Ornstein, Adam [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday, April 26, 2004 9:30 AM Subject: memory leaks... Hey, Does anyone have any

Re: memory leaks...

2004-04-26 Thread Ariel Ayala
recently modified 'log_.txt' file). This file shows the functions calls stack, that generate the memory leaks. Ariel Ayala Corrientes, Argentina - Original Message - From: Ornstein, Adam [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday, April 26, 2004 10:30 AM

RE: memory leaks...

2004-04-26 Thread Ornstein, Adam
-Original Message- From: Ariel Ayala [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 2:51 PM To: Palm Developer Forum Subject: Re: memory leaks... I usually have Mem leaks in functions that set text to popup triggers, fields, etc (basically). A way that 'works' for me

Re: memory leaks...

2004-04-26 Thread Ariel Ayala
. Sorry for my poor English and I hope I helped you in anyway. Ariel Ayala Software Development Corrientes - Argentina - Original Message - From: Ornstein, Adam [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday, April 26, 2004 3:52 PM Subject: RE: memory leaks

RE: memory leaks...

2004-04-26 Thread Ornstein, Adam
Developer Forum Subject: Re: memory leaks... Adam: I have not much experience, but I'm trying to help you the best I can. In the case of global pointers, I don't know how are you doing to get the pointers. In my case, I usually have the sequence: MemHandleNew() MemHandleLock

RE: memory leaks...

2004-04-26 Thread Ben Combee
At 03:23 PM 4/26/2004, you wrote: You have been a good help! And my only remaining question is, do you know of a way to test if a pointer is still allocated to memory, so I don't try to free up empty pointers? The answer is to always set a pointer to NULL after you deallocate it. For example:

RE: memory leaks...

2004-04-26 Thread Ornstein, Adam
Thanks! At 03:23 PM 4/26/2004, you wrote: You have been a good help! And my only remaining question is, do you know of a way to test if a pointer is still allocated to memory, so I don't try to free up empty pointers? The answer is to always set a pointer to NULL after you deallocate it. For

RE: bitmap memory leaks

2004-04-22 Thread Ornstein, Adam
When I remove the FrmDeleteForm, I receive bus errors any other suggestions? - These leaks are due to having save behind set on a form that isn't properly closed. Are you calling FrmCloseAllForms() in your ApplicationStop routine? The other memory leaks may be related. Oddly

RE: bitmap memory leaks

2004-04-22 Thread Ornstein, Adam
of the memory on that form... When I exit the program I get 4 memory leaks. How can I go about re-allocting this memory before the program exits? - 0.000: Relocatable chunk leaked at 0x26C6, size = 40 0.000: Chunk

bitmap memory leaks

2004-04-21 Thread Ornstein, Adam
Hi, I have a form with a bitmap on it as a splash screen (all specified in the resource file). I thought that this wouldn't be a problem, that the system should automatically take care of the memory on that form... When I exit the program I get 4 memory leaks. How can I go about re-allocting

Re: bitmap memory leaks

2004-04-21 Thread Ben Combee
memory leaks. How can I go about re-allocting this memory before the program exits? - 0.000: Relocatable chunk leaked at 0x26C6, size = 40 0.000: Chunk allocated by: 0.000: WinCreateBitmapWindow 0.000

Detecting memory leaks in Palm 6.0 application

2004-04-14 Thread Pravin Tamkhane
Hi All, Is there any tool to detect memory leaks in application under Palm 6.0 . I can do it by knowing the free memory before and after starting the application ( which may not provide me correct memory status). So wanted to know any other alternative method for doing the same. Thanks

Re: Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-29 Thread Salli
that's great. At least I know I'm not going mad! thank you all for all your help, Salli Keith Rollin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 10:44 AM -0600 3/26/04, Ben Combee wrote: At 05:05 AM 3/26/2004, you wrote: Hmmmjust tried this with one of the palm built

Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-26 Thread Salli
Hi, I'm testing my app on an emulator running Palm OS 3.0. If I'm in my app and I display the menu and then hit the launcher button I get an error saying that 2 memory leaks were detected. Does anyone have any ideas? Thanks very much for your help, Salli -- For information on using

Re: Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-26 Thread Salli
the launcher button I get an error saying that 2 memory leaks were detected. Does anyone have any ideas? Thanks very much for your help, Salli -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-26 Thread Sebastian Voges
On Fri, 26 Mar 2004 10:59:04 +, Salli wrote: Hi, I'm testing my app on an emulator running Palm OS 3.0. If I'm in my app and I display the menu and then hit the launcher button I get an error saying that 2 memory leaks were detected. Does anyone have any ideas? Thanks very

Re: Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-26 Thread Ben Combee
At 05:05 AM 3/26/2004, you wrote: Hmmmjust tried this with one of the palm built in apps and it does exactly the same thing. Do you think it's safe to assume that it's a problem with the emulator? Actually, it's probably safer to say it's a problem with Palm OS 3.0 that was fixed in later OS

Re: Menu being displayed causes memory leaks - newbie question I'm sure!

2004-03-26 Thread Keith Rollin
At 10:44 AM -0600 3/26/04, Ben Combee wrote: At 05:05 AM 3/26/2004, you wrote: Hmmmjust tried this with one of the palm built in apps and it does exactly the same thing. Do you think it's safe to assume that it's a problem with the emulator? Actually, it's probably safer to say it's a problem

SysNotifyRegister and memory leaks

2004-02-05 Thread Eric Potter
If I pass a data pointer to SysNotifyRegister, when does that memory get freed? Do I need to get it and free it when I call SysNotifyUnregister or does SysNotifyRegister make a copy of it, thus allowing me to free it imediatley after I call SysNotifyRegister? -- For information on using the

Re: Problem Freeing table's content (memory leaks)

2003-12-29 Thread Matthew Henry
was wondering if there is a way to remove the content of a table because after displaying table I have memory leaks. The scenario: I load the content of each displayable row from database records (using callback function) and also I provide saving callback function. However after I load

Problem Freeing table's content (memory leaks)

2003-12-25 Thread Victor .
Dear developers: I was wondering if there is a way to remove the content of a table because after displaying table I have memory leaks. The scenario: I load the content of each displayable row from database records (using callback function) and also I provide saving callback function. However

Re: Many memory leaks help!

2003-12-16 Thread Victor .
After I put [] at the destructor, the error message becomes something like: trying to read unallocated chunks or/and bus error. Best Regards, Victor Subject: Re: Many memory leaks help! From: Matthew Henry [EMAIL PROTECTED] Date: Mon, 15 Dec 2003 12:28:54 -0500 X-Message-Number: 24 and I

Many memory leaks help!

2003-12-15 Thread Victor .
Dear Palm Developers: I am experiencing many memory leaks when using Palm OS Emulator to test my program. The scenario is as belows (simplified): class A { B* myB; A::A() { myB = new B[100];} } class B { C* myC; B::B() { myC = new C[100]; } } class C { int K; char* L; C::C

Re: Many memory leaks help!

2003-12-15 Thread Matthew Henry
and I declare a number of class A objects in the heap and put them as global static variables. The problem is I can't delete class A objects even when I do it at the end of the program eventhough I are you calling delete [] myC; in your destructors? note the []. -- For information on

Re: Memory leaks from unknown API functions

2003-12-10 Thread Regis St-Gelais
:[EMAIL PROTECTED] A user trying my program under POSE reports 2 memory leaks and sends me this log file: 0.000: Non-relocatable chunk leaked at 0x0003C350, size = 9 0.000: Chunk allocated by: 0.000: SetControlLabel 0.000: MainViewInit 0.000: MainViewHandleEvent

Re: Memory leaks from unknown API functions

2003-12-10 Thread Keith Rollin
: if those routines are not from your app: MainViewInit, MainViewHandleEvent, StarterPalmMain it is not a log file about your app. -- Luc Le Blanc [EMAIL PROTECTED] a Ècrit dans le message de news:[EMAIL PROTECTED] A user trying my program under POSE reports 2 memory leaks and sends me this log file

Memory leaks from unknown API functions

2003-12-09 Thread Luc Le Blanc
A user trying my program under POSE reports 2 memory leaks and sends me this log file: 0.000: Non-relocatable chunk leaked at 0x0003C350, size = 9 0.000: Chunk allocated by: 0.000: SetControlLabel 0.000: MainViewInit 0.000: MainViewHandleEvent 0.000

memory leaks

2003-11-18 Thread Stephen Bentley
The emulator is reporting memory leaks in my code. Is there something wrong with allocating strings like this: stringH = MemHandleNew(10); string = MemHandleLock(stringH); // do some strcopys, etc. MemHandleUnlock(stringH); I really thought this was how you do strings. Thanks. Stephen

RE: memory leaks

2003-11-18 Thread Stephen Bentley
MemHandleFree(stringH) I'm guessing??? -Original Message- The emulator is reporting memory leaks in my code. Is there something wrong with allocating strings like this: stringH = MemHandleNew(10); string = MemHandleLock(stringH); // do some strcopys, etc. MemHandleUnlock(stringH); I

Re: memory leaks

2003-11-18 Thread Laurens
Stephen Bentley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] MemHandleFree(stringH) I'm guessing??? You guessed right. Just unlocking the handle won't free the chunk. There should be a matching MemHandleFree for every MemHandleNew(and a MemHandleUnlock for every MemHandleLock).

Re: Emulator not detecting memory leaks

2003-09-04 Thread Matt Graham
start POSE by running or debugging my app in codewarrior, I get the box telling me I have memory leaks, but then nothing gets written to the log file. matt -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Emulator not detecting memory leaks

2003-09-04 Thread Jan Slodicka
have switched off warnings in Emulator/Menu/Settings/Logging. Jan - Original Message - From: Matt Graham [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 8:50 PM Subject: Re: Emulator not detecting memory leaks

Emulator not detecting memory leaks

2003-09-03 Thread Jan Slodicka
Hello To my surprise I found today that the emulator stopped detecting memory leaks. To be sure I made some explicit allocations and did not release them. I use Palm OS Emulator 3.5. The only extra things I did in the last days was the profiling. (I.e. running Emulator_Profile.exe instead

Re: Emulator not detecting memory leaks

2003-09-03 Thread Chris Apers
Is the Settings Debugging... MemMgr leaks box checked ? Hello To my surprise I found today that the emulator stopped detecting memory leaks. To be sure I made some explicit allocations and did not release them. I use Palm OS Emulator 3.5. The only extra things I did in the last days

Re: Emulator not detecting memory leaks

2003-09-03 Thread Jan Slodicka
Yes, the checkbox is checked. - Original Message - From: Chris Apers [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 1:56 PM Subject: Re: Emulator not detecting memory leaks Is the Settings Debugging... MemMgr leaks box checked

Re: Emulator not detecting memory leaks

2003-09-03 Thread Keith Rollin
- From: Chris Apers [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 1:56 PM Subject: Re: Emulator not detecting memory leaks Is the Settings Debugging... MemMgr leaks box checked ? Hello To my surprise I found today that the emulator stopped

Re: Emulator not detecting memory leaks

2003-09-03 Thread Jan Slodicka
Rollin [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 7:27 PM Subject: Re: Emulator not detecting memory leaks How are your Error Handling dialog options set? Could it be that the message is being written to the log file, but not reported

RE: Emulator not detecting memory leaks

2003-09-03 Thread Keith Rollin
tests using custom launch codes. (Set via CW debugging options.) Poser warns about memory leaks on a patch it places on SysAppExit. It's likely that the launch codes you're testing with don't include calling SysAppStartup and SysAppExit. If so, you won't get the leak messages. If you

Re: Emulator not detecting memory leaks

2003-09-03 Thread Jan Slodicka
Debug Options / Dialog Handling / Beam every 2 seconds... (Unimportant setting) - Original Message - From: Keith Rollin [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 11:29 PM Subject: RE: Emulator not detecting memory leaks Debug Options

Re: memory leaks vs. unallocated chunks

2003-08-26 Thread Meg Walraed-Sullivan
For anyone who might be interested or doing a similar function, my problem was in AddPickedItem, where the very first item of the dynamic list was set. ( pickedListStringP.stringListP=itemToAdd;) Because I was doing this by pointer, when the second item was added, the first list was freed, thus

Re: memory leaks vs. unallocated chunks

2003-08-24 Thread wterreblanche
I decided to dig up my program again and make a very simple project to illustrate what I have done. It also fills a list dynamically, but there are no memory leaks resulting from this code. You can easily copy this code just as it is into a small project and try it out. I have not really

memory leaks vs. unallocated chunks

2003-08-21 Thread meg
can fill their personal picked list. There is something slightly wrong with my function for adding to the picked list however. If I use the function as is (shown below) I end up with a number of memory leaks equivalent to the number of list items added after the first item. (so I know that the leak

Re: memory leaks vs. unallocated chunks

2003-08-21 Thread Prashant Jha
on a side note, when there are memory leaks, the emulator alerts me and tells me that details can be found in the log file. What log file? To begin with, the log file is in the same directory as your emulator.exe (usually). __ Do you Yahoo!? Yahoo! SiteBuilder

Re: memory leaks vs. unallocated chunks

2003-08-21 Thread wterreblanche
. I do a MemPtrFree of the list in my frmCloseEvent and in my AppStop() and now I do not have the memory leaks anymore. tells me that details can be found in the log file. What log file? This question is easy to answer. The log file resides in the same directory where your POSE.exe if you

Re: memory leaks vs. unallocated chunks

2003-08-21 Thread meg
Thank you very much for your response. Unfortunately I'm still stuck. Actually, the problem is more that ClearPickedList doens't work correctly once I do free the memory. I'm pretty sure about where the memory leaks are coming from, but fixing them breaks ClearPickedList (and only on the last

Re: memory leaks/database storing

2003-08-18 Thread Thomas Damme
Hello meg, actually there is nothing in these 2 lines that could cause memory leaks. You should provide us with some more code to detect them and to find out, why the content of newData is not stored in your database. But what I can see from the 2 lines: The first is not the way you would use

Re: memory leaks/database storing

2003-08-18 Thread Thomas Damme
write and read data does nit fit together. Thomas meg [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I STILL can't get these memory leaks to go away. For some reason, the only way I can seem to save to the database is with a pointer to a pointer. error=DmWrite(p, offset,newData

memory leaks/database storing

2003-08-17 Thread meg
I STILL can't get these memory leaks to go away. For some reason, the only way I can seem to save to the database is with a pointer to a pointer. error=DmWrite(p, offset,newData, sizeof(char*)); where newData is a char*. So I am only storing pointers, which are invalid once the program ends

Memory Leaks

2003-07-30 Thread Régis Daniel de Oliveira
, that indicates that no error ocurred. But, when i close the emulator, it tell me that there was memory leaks on the app. When i see the log file, it show me the itens that was on my list. Does anybody knows what is wrong? This the code that i use the fill the Char **itemList: void LoadClientList

Re: Memory Leaks

2003-07-30 Thread Alan Ingleby
Does anybody knows what is wrong? Yes, you need to free all the allocations created by : itemList[count] = (char *)MemPtrNew(StrLen(NomeCli) * sizeof(Char *)); Personally, I find it easier to use a callback function for dynamic lists. Alan -- For information on using the Palm Developer

Re: Memory Leaks

2003-07-30 Thread Régis Daniel de Oliveira
Thanks Alan. Now it's working very good! Thanks! Alan Ingleby [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Does anybody knows what is wrong? Yes, you need to free all the allocations created by : itemList[count] = (char *)MemPtrNew(StrLen(NomeCli) * sizeof(Char *));

(Thanks!) RE: Memory Leaks from POL objects after adding a segment and reordering modules.

2003-07-03 Thread Nick
Maks and Ben, Thanks for your help. I found that the problem was my mistake (of course!). Amazing what a little sleep and a few days away from the bit-banging will for your your sanity! At least, I'd like confirmation from an expert before saying the problem is fixed. Turns out that the only

  1   2   >