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
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
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
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
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
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
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
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/
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,
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/
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/
:
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
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/
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
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
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/
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
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
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
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
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
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
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
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
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++)
{
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
. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
.
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
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
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:
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
:[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
:
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
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
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
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
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).
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/
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
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
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
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
-
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
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
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
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
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
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
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
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
. 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
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
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
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
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
, 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
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
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 *));
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 - 100 of 188 matches
Mail list logo