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 byte
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/
why would there be. it is the same as if you call them form 68k. you
push the args onto the 68k stack, then call pace, which gets the trap
handler (which is in arm) and it gets params off 68k stack and does
its thing, returns a value in 68k"s a0 or d0, pace returns that value
to you, and returns 6
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.
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/
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 descr
seems that i ever meet such condition,
later i found that the destroy function
of one form doesn't been excuted, which
is responsible for free some chunk
ÔÚÄúµÄÀ´ÐÅÖÐÔø¾Ìáµ½:
>From: Tinnus <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum"
>To: "Palm Dev
memory leak.
Bonnie
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
TinnusSent: Friday, January 06, 2006 11:38 AMTo: Palm
Developer ForumSubject: Re: Memory leaks
systemmgr.c is the OS file.Do a search in the source for any
chunks 28 bytes-long.
2006/1/6, John <[EMAIL PROTEC
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 PlamO
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
Simulato
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 to be fi
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
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 anym
Krzysztof,
Regarding Poser, your article says:
Another way is to run your program using POSE, a PalmOS emulator and
use a debug rom (which you can get if you participate in Palm's
Solution Provider Program). If you have leaks in your program debug
rom will tell you about this upon exiting. Unfor
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 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++)
{
if(stat
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
The log file contains information that was in the memory you didn't free.
Typically, one can recognize this from originating from a specificic part of
the code. If you can't do that, you may want to double check that all
memory you allocate is eventually freed. Check your MemPtrNew/MemPtrFree
and
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
h
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 b
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 it this
> 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 to
There are exceptions to the OS cleaning up your mess for you. For
example, if you allocate feature memory then don't free it, the OS
won't reclaim it until a reset. Also, don't expect "garbage
collection" while your program is running. Don't be surprised if some
of your clients have very little fre
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. On
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 j
"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 mem
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.
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:
Palm 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(
>
>
>
> Adam E. Ornstein
> Information Resource Specialist
> [EMAIL PROTECTED]
> (301) 427 - 1266
>
>
> -Original Message-
> From: Ariel Ayala [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 26, 2004 2:51 PM
> To: Palm Developer Forum
> Subject: Re:
-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'
I usually have Mem leaks in functions that set text to popup triggers,
fields, etc (basically). A way that 'works' for me to detect them is run the
Gremlins tool of POSE, while debugging the app. And when MemLeaks are
detected, see the log file generated (in the Emulator's directory, the most
r
Count all the times your app allocates memory and subtract when you
deallocated it. If your app is small enough, you can keep count in your
head while stepping through. I've also added a variable I increment and
decrement accordingly, then check its value just before the app exits.
You can also u
Just more FYI: I checked the Palm OS 4.2 sources,
and couldn't find a function called
SetControlLabel, so it looks like the problem is
with an installed application, and not with
anything in the OS (such as a sub-launched panel).
-- Keith
At 1:38 PM -0500 12/10/03, Regis St-Gelais wrote:
if t
if those routines are not from your app: MainViewInit, MainViewHandleEvent,
StarterPalmMain
it is not a log file about your app.
--
Regis St-Gelais, P. Eng. / ing.
Software Development / Développement informatique
www.laubrass.com
--
"Luc Le Blanc" <[EMAIL PROTECTED]> a écrit dans le message de
n
"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).
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
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
un
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 comp
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
ca
I decided to respond to your question because sometime ago I also had
a very similiar problem. I tried to look again in my code what I did
to solve it, but can not remember exactly what it was. However, I
*think* you should try to also call your ClearPickedList from the
AppStop() function.
>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! SiteBuild
Sorry, just found your original posting. Started the list from the top ;-)
So forget what I wrote before.
1.) your function BuildAnswerString create a chunk in the dynamic area so
you have to free it after you call QuestionEditRecord
2) With this code you just store strings in the database like "
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 a da
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(Cha
> 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
At 09:38 PM 7/3/2003, Nick wrote:
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
f
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 *o
] On Behalf Of Nick
> Sent: Tuesday, July 01, 2003 7:06 AM
> To: Palm Developer Forum
> Subject: Re: Memory Leaks from POL objects after adding a segment and
> reordering modules.
>
> Maks,
>
> Thanks for the suggestions. I am currently comparing current the
version
> to
Maks,
Thanks for the suggestions. I am currently comparing current the version to
previous versions to see where I might have broken something.
At first, instead of adding a new segment, I put some of the forms in
Segment 2 and everything was fine. However, I thought this would not be a
good ide
"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> At 11:16 PM 6/30/2003, Nick wrote:
> >I recently had to add a segment to my application because the first
segment
> >exceeded 64k and I was getting compiler errors. The users of this forum
> >kindly helped me through this
At 11:16 PM 6/30/2003, Nick wrote:
I recently had to add a segment to my application because the first segment
exceeded 64k and I was getting compiler errors. The users of this forum
kindly helped me through this. I added Segment 5 as Preload, Protected,
Locked. I chose these values because all
Check your own code ;-)
1. Try to avoid using dynamically created objects, for example:
A* pa = new A();
pa->Foo();
delete pa;
Replace with:
A a;
a.Foo();
2. Use smart pointers (CAutoPtr and CSmartPtr) if it's difficult to
track objects lifetime.
__
At 3:53 PM -0500 6/4/03, Todd Niec wrote:
My program is "suddenly" giving me two memory leaks. These appear
to have something to do with the display of the main form. The
form is not marked to "save the bits behind" the form, which is what
it almost seems to be doing. Coudl the be because I
At 15:53 2003-6-4 -0500, Todd Niec wrote:
My program is "suddenly" giving me two memory leaks. These appear to
have something to do with the display of the main form. The form is
not marked to "save the bits behind" the form, which is what it almost
seems to be doing. Coudl the be because I am
At 8:12 PM +0100 1/18/03, Stephan Veigl wrote:
Hi Eric
Some of them I really have no idea about since I don't recognize
anything on the stack. (I've attached a log file).
It's your job to do the clean up. There's a good article and samples that
may help you at:
http://www.fifthgate.org/article
Hi Eric
> Some of them I really have no idea about since I don't
> recognize anything on the stack. (I've attached a log file).
It's your job to do the clean up. There's a good article and samples that
may help you at:
http://www.fifthgate.org/articles/palm_mem_leaks.html
by(e)
Stephan
--
For
Eric,
I had a similar problem recently. A program I had written years ago got
these complaints in the newest emulator. I solved it by including:
FrmCloseAllForms();
in my stop application function. Something I should have done all along,
but did not realize I hadn't until recently. Perha
We covered a lot of this just two days ago in this forum. See the
thread titled "POSE reports memory leak even when I don't allocate".
In short, you're supposed to clean up those resources before you quit
your application.
-- Keith Rollin
-- Palm OS Emulator engineer
At 10:54 PM -0600 1/17/03
Other memory leaks are caused by not freeing up loaded forms (ie. Not
calling FrmCloseAllForms() when app quits).
Brian
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Typical
Joe
Sent: Thursday, August 29, 2002 6:26 AM
To: Palm Developer Forum
Subject:
--- Typical Joe <[EMAIL PROTECTED]> wrote:
>
> Are memory leaks only ever caused by not deallocating a field's
> old handle ?
> Are there any other causes of leaks ?
Allocate dynamic memory, then don't free it -> memory leak. No field
required.
For Example, put this in your AppStart():
Char
There are many ways to leak memory - some of the most common are discussed
in the online Palm OS Expert Case Studies course at
http://www.palmos.com/dev/training/online/
The course is free until the end of the year, and was written to help
developers overcome programming challenges. Think of it
At 8:51 PM -0700 7/22/02, Jaxo, Inc. wrote:
>>If you're not getting the same results, then *something's* different.
>
>Yes, but what? Assuming everything works the way it is supposed to
>work, what is it that causes the generation of the fairly detailed
>memory leak report that gets printed to
"Keith Rollin" <[EMAIL PROTECTED]> wrote in message
news:91718@palm-dev-forum...
> There is no "Palm OS 4 SDK Emulator". The Palm OS Emulator is
> downloaded from its own Web page; it is not part of any SDK.
Yes, I know...I just refer to it as that to differentiate it from the
"simulator."
> I
At 5:52 PM -0700 7/22/02, Jaxo, Inc. wrote:
>How does one turn on memory leak checking in the Palm OS 4 SDK Emulator?
There is no "Palm OS 4 SDK Emulator". The Palm OS Emulator is
downloaded from its own Web page; it is not part of any SDK.
>A colleague gets memory leak traces, but even though
Well
True, you are creating your list dynamically, but I (for one) would hardly
call it a dynamic list.
To answer your question -- if you create the list (LstNewList) on form open,
I would trash your memory on form close. Don't forget to check whether or
not you ever actually allocated the
: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 10:02 AM
Subject: Re: Memory leaks
> "Karanjit Siyan" <[EMAIL PROTECTED]> wrote in message
> news:52491@palm-dev-forum...
> >
> > I am developing an app
"Karanjit Siyan" <[EMAIL PROTECTED]> wrote in message
news:52491@palm-dev-forum...
>
> I am developing an app for the palm that I am debugging using the POSE
3.2
> I get memory leak errors even when I have reduced the code down to a
small
> stub. I have several global data structures declared usin
> I get memory leak errors even when I have reduced the code down to a small
> stub. I have several global data structures declared using 'static'. Does
> any one know if global data gets moved around by the Palm OS. I get the
> memory leak errors when I enter and immediately exit the application.
> I'd mentioned all this in a previous discussion, but since I
> also have a P3/800 with W98SE, the coincidence was too much to resist.
> :)
>
> First question - are you using CodeWarrior 7?
>
> > dammit, for the first time i understand how to use this hd
> 0 and it gives
> > my machine a fat
es R
>
> -Original Message-
> From: Jacky Cheung <[EMAIL PROTECTED]>
> To: Palm Developer Forum <[EMAIL PROTECTED]>
> Date: Monday, February 19, 2001 3:36 PM
> Subject: RE: Memory leaks
>
> >To open the console window, click on Palm->Open Debug Console
t; <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 5:06 AM
Subject: RE: Memory leaks
> Thank you very much. That was exactly what was missing.
> Now, that I can use hd 0:
> this is what I get:
EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Manal
Milad
Sent: Thursday, February 22, 2001 12:07 AM
To: Palm Developer Forum
Subject: RE: Memory leaks
Thank you very much. That was exactly what was missing.
Now, that I can use hd 0:
this is what I get:
Displaying Heap ID: , mapp
"Manal Milad" <[EMAIL PROTECTED]> wrote in message
news:40476@palm-dev-forum...
>
> Thank you very much. That was exactly what was missing.
> Now, that I can use hd 0:
> this is what I get:
>
>
> Displaying Heap ID: , mapped to 1800
>
> reqact
resType/
> #r
eloper Forum <[EMAIL PROTECTED]>
Date: Monday, February 19, 2001 3:36 PM
Subject: RE: Memory leaks
>To open the console window, click on Palm->Open Debug Console...
>
>then type in hd 0 and press enter.
>
>Hope this help.
>Jacky
>
>-Original Message-
&
Manal
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ben
Combee
Sent: Tuesday, February 20, 2001 10:04 PM
To: Palm Developer Forum
Subject: Re: Memory leaks
"Jacky Cheung" <[EMAIL PROTECTED]> wrote in message
news:40377@palm-dev-forum...
&g
Forum
Subject: RE: Memory leaks
Thanks for your reply, but where do I find Palm->Open Debug Console?
I am using Code Warrior Lite.
Manal
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jacky
Cheung
Sent: Monday, February 19, 2001 9:05 PM
To: Palm Develop
"Jacky Cheung" <[EMAIL PROTECTED]> wrote in message
news:40377@palm-dev-forum...
>
> Sorry I am not sure where it is for Lite as I don't have it here. It is
on
> the menu bar for CW7.
> Does anyone know?
CW PalmOS Lite should have this. You may need to enable the Palm menu by
clicking the check
Thanks for your reply, but where do I find Palm->Open Debug Console?
I am using Code Warrior Lite.
Manal
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jacky
Cheung
Sent: Monday, February 19, 2001 9:05 PM
To: Palm Developer Forum
Subject: RE: Mem
To open the console window, click on Palm->Open Debug Console...
then type in hd 0 and press enter.
Hope this help.
Jacky
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Manal
Milad
Sent: Tuesday, February 20, 2001 2:50 AM
To: Palm Developer Forum
Subje
Rely on the debug ROMS, normal ROMS dont show you the errors. Any errors
shown up by the debug ROMS need fixing.
Rik
> -Original Message-
> From: Manal Milad [SMTP:[EMAIL PROTECTED]]
> Sent: 19 February 2001 13:50
> To: Palm Developer Forum
> Subject: Memory leaks
>
> 1. I have m
Yes, I'm well aware of that.
Ben Combee <[EMAIL PROTECTED]> wrote in message
news:36455@palm-dev-forum...
>
> "Chris DiPierro" <[EMAIL PROTECTED]> wrote in message
> news:36414@palm-dev-forum...
> >
> > Yea it is. I appreciate it.
> >
> > Ok, here's a question then.
> >
> > After many Gremlins I
> From: Stuart A. Malone [mailto:[EMAIL PROTECTED]]
> I've got a memory leak in my app, which consists of a single object
> Is there some way to for me to get CodeWarrior to give me a list of the
> structs and classes I've got declared in my app that are 16 bytes long?
> All other suggestions, of
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 byt
> First since I am using C++ instead of C, I am using new and delete.
> This is the same as using MemPtrNew and MemPtrFree, right?
You've got the runtime sources...you can see for yourself if this is true or
not.
> New creates a
> nonmovable chunk in the dynamic heap and delete would delete it
85 matches
Mail list logo