I traced it back and found where it was being allocated. That segment of code
where it was allocated did no point it to NULL in case it didnt need to be
allocated. Long story short it was trying to free a pointer that had
"something" but its location was unknown so not even a precheck like
if(
Do you know the function allocated the char* on the heap, and that it expects
your code to free it?
Doug Reeder
sent from my Palm OS Treo 650
-Original Message-
From: "Rnieves" <[EMAIL PROTECTED]>
Subj: Memory Manager Error
Date: Tue Nov 25, 2008 4:20 pm
Size: 366
I acquire a Char * from a function and then at the end of my application I free
the pointer by doing a MemPtrFree(p). I then proceed to point p=NULL; and this
causes an error "MemoryMgr.c, Line:3760, Invalid chunk ptr" Any ideas?
--
For information on using the ACCESS Developer Forums, or to uns
> Thanks for the clues . I will try to find out if there's anything wrong
with
> our code again .. But exactly what are the differences between the memory
> managers of 4.1 & 5.0? I mean are they doing some extra checks in 5.0?
I have no idea. But I'm not sure this is the point: from the programme
ns it may not be interfering
with the memory management information .
Anyways , thanks again & regards ,
Dhanashri .
- Original Message -
From: "Pascal LEVY" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2
> This is quite similar to what we are facing in our application ported to
OS
> 5.0 . Please anybody from the Palm OS developers have any idea what's
> happening behind the scenes ??
My guess is that your application trashes the heap. You probably overwrite
some memory management information, whi
should be done ..
Thanks ,
Dhanashri .
- Original Message -
From: "Jake Wobbrock" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 12:26 PM
Subject: Re: Memory Manager Error
&g
From: "Dhanashri" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Thursday, November 13, 2003 9:34 PM
> Subject: Re: Memory Manager Error
>
>
> > Hi Anders ,
> > I removed all the MemMoves with my own MyMemCopy
Hello All ,
Please someone reply ..
-Dhanashri /
- Original Message -
From: "Dhanashri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 9:34 PM
Subject: Re: Memory Manager Error
> Hi Anders ,
>
;[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 8:49 PM
Subject: Re: Memory Manager Error
> Hi Anders ,
> Also 1 thing is we wanted to know .. the same code works on Palm OS 4.1 on
> Samsung i500 device . But it won't work on OS 5.0 . Why this is so ? Does
OS
> 5.0 treat mem
;Dhanashri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 8:08 PM
Subject: Re: Memory Manager Error
> Hi Anders ,
> Can I see the memory map in Codewarrior ? For example , in Archimedes
> compiler for 8051 , we
shri .
- Original Message -
From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 7:57 PM
Subject: Re: Memory Manager Error
> I think that it checks if the addres
I think that it checks if the address are valid and inside the perimiter of
the dynamic heap.
I'll hope you solve this problem. Good Luck !!!
\Anders R-N
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 5:52 PM
Subject: Re: Memory Manager Error
> Hi Dhanashri,
>
> I don't think that there should be any limitation, but you have to make
sure
> that if you have defined a buff
Hi Dhanashri,
I don't think that there should be any limitation, but you have to make sure
that if you have defined a buffer that can hold 32k and you just have 22k in
i you shouldn't try to move 32k. DmWrite should you use when you don't have
your buffers in the dynamic heap and I think that MemM
alm os 5.0 applications & their possible causes ?
> thanks & best regards ,
> Dhanashri .
>
>
> - Original Message -
> From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTE
ssage -
From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2003 8:22 PM
Subject: Re: Memory Manager Error
> Hi Dhanashri,
> Use the debugger to see if you
Make sure that you don't trying to move more bytes then the buffer holds.
You have to be sure that you move the right size from the source buffer.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Hi Dhanashri,
Use the debugger to see if you get any data in your local buffer and if you
get the right address before you use the function MemMove. I don't see why
MemMove shouldn't work either so check the values in your buffer and the
pointer you use for each buffer.
\Anders R-N
--
For info
November 12, 2003 6:11 PM
Subject: Re: Memory Manager Error
> If the pointer to the chunk have an NULL address you get that error
message,
> but how do you use MemMove without create a pointer or a chunk?
>
> "Marianne" <[EMAIL PROTECTED]> wrote in message
> news:[EMAI
ctions .We have used MemMove..
> Is this causing the problem
>
> Marianne
>
>
> - Original Message -
> From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent
Sent: Tuesday, November 11, 2003 1:55 PM
Subject: Re: Memory Manager Error
> It sounds like you get a pointer that has a NULL-address. Do you use any
> memory allocation function eg. MemPtrNew, MemHandleNew or MemGluePtrNew ?
>
> "Marianne" <[EMAIL PROTECTED]>
It sounds like you get a pointer that has a NULL-address. Do you use any
memory allocation function eg. MemPtrNew, MemHandleNew or MemGluePtrNew ?
"Marianne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Hello,
>
> I have written an application and when i run it i get the foll
...
" MemoryMgr.c , Line:3675,
Invalid chunk ptr
RESET "
Marianne
- Original Message -
From: "Chris Apers" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, November 10, 2003 8:00 PM
Subject: Re: Mem
Did you try to debug your app ? this is the easier way to find out
why/where this occured.
>
>
> We don't explicitly create any chunk.. We just get the error, we have no
> idea how this error comes
> So we wanted to know what generates the error.Please guide us...
>
> Marianne
>
>
>
--
For
m-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, November 10, 2003 7:12 PM
Subject: Re: Memory Manager Error
> How do you create the chunk?
>
> "Marianne" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> >
How do you create the chunk?
"Marianne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Hello,
>
> I have written an application and when i run it i get the following error:
>
> In which conditions do we get this error in Palm OS 5.0 :
> MemoryMgr.c , Line:3675,
> Inv
Hello,
I have written an application and when i run it i get the following error:
In which conditions do we get this error in Palm OS 5.0 :
MemoryMgr.c , Line:3675,
Invalid chunk ptr
After this the PDA RESETs .Can anyone help me out...
Thanks in advance
Marianne
--
For inform
Hi,
As u were told earlier chang ur pointer type(ID) to arrays.or integer.
-Peter
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
- Original Message -
From: "Aaron Peter" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 12:54 PM
Subject: Re: Memory manager error
> > Hi,
> >
> > MemHand
Thank you. I will try and get back...
Veena
- Original Message -
From: "Keith Rollin" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 12:43 PM
Subject: Re: Memory manager error
> At 12:29 PM +0530
hey are correct.Is
> there any other way like a message box , or something other than that which
> i can use instead of an alert.
>
> Regards,
> Veena
> - Original Message -
> From: "Keith Rollin" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum&
At 12:29 PM +0530 9/6/01, Saraswathy wrote:
>while using the debugger , it gives the error where i set my frmCustomAlert
>to notify the values..If i remove it generally there is no error. But then i
>am not able to find out the values being read and if they are correct.Is
>there any other way like
that which
i can use instead of an alert.
Regards,
Veena
- Original Message -
From: "Keith Rollin" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 12:17 PM
Subject: Re: Memory manager error
> Please use
;(((myrec *)0)->test))
//offsetrec=offsetrec + sizeof(myrec);
MemHandleUnlock(q);
DmReleaseRecord(dbref,at,true);
// at=at+1;
DmCloseDatabase(dbref);
break;
- Original Message -
From: "Aaron Peter" <[EMAIL PROTECTED]>
To: "P
>>
>> - Original Message -
>> From: "Aaron Peter" <[EMAIL PROTECTED]>
>> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>> Sent: Friday, September 14, 2001 11:11 AM
>> Subject: Re: Memory manager error
>&g
per Forum" <[EMAIL PROTECTED]>
> Sent: Friday, September 14, 2001 11:11 AM
> Subject: Re: Memory manager error
>
> > Hi,
> > Maybe ur using some pointers to store values. So when u come next
> time ur values maybe lost !
> >
> > -Peter
> >
&
hi,
What do i do..That doesnt seem to be the problem..and if it is..what do i
do.
-Veena
- Original Message -
From: "Aaron Peter" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 11:11 AM
Subject:
Hi,
Maybe ur using some pointers to store values. So when u come next time ur values
maybe lost !
-Peter
Saraswathy wrote:
> Hi,
>
> While running the program on the emulator i get an error
>
> The first time I run the application on the emulator its runs fine, but the
> second time I en
Hi,
While running the program on the emulator i get an error
The first time I run the application on the emulator its runs fine, but the
second time I encounter this error. Given Below
"Starter 1.0 has just read directly from memory manager data structures"
Kindly help
Regards,
Saraswathy
-
40 matches
Mail list logo