0 );
err = MemHandleResize( handle, newSize );
version++;
err = DmSetDatabaseInfo( 0, dbId, NULL, NULL, &version,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL );
Before this latter call, should I call MemHandleToLocalID to fetch the new (?)
appInfoID to update it in the database?
Luc Le B
ich can be cast to Char*
Char *ptr = MemHandleLock (myAppPrefs.it);
...
... // read/write to the memory using the pointer
...
// to resize the memory area
MemHandleUnlock (myAppPrefs.it);
if (MemHandleResize (myAppPrefs.it, newSize)
rom: "Pit" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 20, 2004 3:50 PM
> Subject: Re: Problem with MemHandleResize - memErrChunkLocked
>
>
> > Hey,
> > special th
]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 3:50 PM
Subject: Re: Problem with MemHandleResize - memErrChunkLocked
> Hey,
> special thanks for your detailed explanation.
> Now its clear for me!
>
> But n
r whatever you want
> MemHandleUnlock(myAppPrefs.it);
>
>
> - Original Message -
> From: "Pit" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 20, 2004 1:04 PM
AIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 1:04 PM
Subject: Re: Problem with MemHandleResize - memErrChunkLocked
> OK, but what is really obscour to me is, how can i save my char** into
this
> handle
PROTECTED]>
> Sent: Tuesday, April 20, 2004 12:45 PM
> Subject: Re: Problem with MemHandleResize - memErrChunkLocked
>
>
> > Ok, that is a good explanation.
> > But how do i actually make my myAppPrefs.it handle?
> > Sorry for my ignorance.
> >
> >
> >
>
April 20, 2004 12:45 PM
Subject: Re: Problem with MemHandleResize - memErrChunkLocked
> Ok, that is a good explanation.
> But how do i actually make my myAppPrefs.it handle?
> Sorry for my ignorance.
>
>
>
> --
> For information on using the Palm Developer Forums, or to u
Ok, that is a good explanation.
But how do i actually make my myAppPrefs.it handle?
Sorry for my ignorance.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
t;Pit" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 4:53 PM
Subject: Re: Problem with MemHandleResize - memErrChunkLocked
> Ok, so i did it!
>
> But now i have a problem with MemPtrReco
only if you want to read/write data from this handle.
>
> - Original Message -
> From: "Pit" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 4:33 PM
>
You need to lock it only if you want to read/write data from this handle.
- Original Message -
From: "Pit" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 4:33 PM
Subject:
emHandleLock before MemHandleResize this is why you have
> this error.
>
> - Original Message -
> From: "Pit" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, April 19, 2004 3:54 PM
>
You call MemHandleLock before MemHandleResize this is why you have
this error.
- Original Message -
From: "Pit" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 3:54 PM
Subje
Hi folks,
im having troubles with the MemHandleResize-function. I use this function in
the following code:
When i call this function 4 times: everthing is OK!
When i call it the fifth time, i get an memErrChunkLocked-error.
I dont know why this happens, and i m getting more and more frustrated
That works
thanks a lot
Wendel B Silva
At 07:41 AM 4/2/2004, you wrote:
>Hi,
>
>I want resize a record of one PDB, but sometimes the dmresizerecord dont work.
>How can do to everytime resize a record?
Make sure the record is unlocked before you use DmResizeRecord -- if it's
locked, it can onl
At 07:41 AM 4/2/2004, you wrote:
Hi,
I want resize a record of one PDB, but sometimes the dmresizerecord dont work.
How can do to everytime resize a record?
Make sure the record is unlocked before you use DmResizeRecord -- if it's
locked, it can only be resized if free memory directly follows the
Hi,
I want resize a record of one PDB, but sometimes the dmresizerecord dont work.
How can do to everytime resize a record?
Can i use MemhandleResize when dmresizerecord dont work?
Below is my code.. but sometimes gives a error2.
if (DmResizeRecord(DatabaseHandle, index, TamRecord + TamLine
Malcome wrote:
Why does MemHandleResize fail when passing a number larger than 65K,
eventhough the parameter supports a UInt32.
I assume this only because, instead of getting a memErrNotEnoughSpace, I get
an error saying memErrInvalidParam.
I know that the handle is ok, since I use it with smaller numb
Why does MemHandleResize fail when passing a number larger than 65K,
eventhough the parameter supports a UInt32.
I assume this only because, instead of getting a memErrNotEnoughSpace, I get
an error saying memErrInvalidParam.
I know that the handle is ok, since I use it with smaller numbers with
um" <[EMAIL PROTECTED]>
Sent: Fri, 08 Aug 2003 12:51:43 -0400
Subject: Re: MemHandleSize - MemHandleResize
> On Fri, 8 Aug 2003 10:35:28 -0300, "rguevara" <[EMAIL PROTECTED]>
> wrote:
>
> >
> >I have some questions about those functions:
> >
>
On Fri, Aug 08, 2003 at 12:50:21PM -0300, rguevara wrote:
> more clean:
> i can resize one handle what was assignaded with DmGetRecord() ?
Don't use MemHandleResize, use DmResizeRecord.
--
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
ssage:
>"MemoryMgr.c, Line:4359, Free handle"
>
>and (continue) i get:
>(1.0) just read from memory location 0x0144,
> causing a bus error.
>(reset)
>¿?
>
>if later MemHandleResize work with this han
-- Forwarded Message ---
From: "rguevara" <[EMAIL PROTECTED]>
To: "Forum PALM (PalmOS)" <[EMAIL PROTECTED]>,"Forum PALM
(Yahoo)" <http://groups.yahoo.com/group/palm-dev-forum/post>
Sent: Fri, 8 Aug 2003 10:35:28 -0300
Subject: MemHan
rom memory location 0x0144,
causing a bus error.
(reset)
¿?
if later MemHandleResize work with this handle without problems in other case
--
Open WebMail Project (http://openwebmail.org)
--
For information on using the Palm Developer Forums, or to unsubscribe, please
more clean:
i can resize one handle what was assignaded with DmGetRecord() ?
--
Open WebMail Project (http://openwebmail.org)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Make sure you don't increase the size of a locked handle.
--
Radoslaw Nowak, RNS::
www.ranosoft.com/palm
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Hai All
i am adding items to listbox.
First i am creating memory from MemHandleNew like
ChoicesHandle = MemHandleNew(sizeof(char));
When i going to add item to, finding the size item
and resizeing the memory with
MemHandleResize this function, and adding all the
items to listbox. It is
items in list box that
MemHandleResize function returning error value..
MemHandleResize is returning the memErrNotEnoughSpace
value and executing ErrFatalDisplayIF function.
i am listing code
Can any one help me
Thanks
Raj
The follwoing is the code which i used for listbox.
FormPtr frmP
Actually you can write a wrapper for anything
as far as it doesn't look like a patch :=)
Michael
-Original Message-
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 28 November 2001 5:16 PM
To: Palm Developer Forum
Subject: Re: BTW, about MemHandleResize
"Michae
"Michael Glickman" <[EMAIL PROTECTED]> wrote in message
news:69216@palm-dev-forum...
>
> BTW, I would like MemMgr resize commands to work
> similarly to UNIX resize: if the original handle/pointer
> is zero the memory is created, otherwise it is resized.
>
> It will save a lot of space in app prog
BTW, I would like MemMgr resize commands to work
similarly to UNIX resize: if the original handle/pointer
is zero the memory is created, otherwise it is resized.
It will save a lot of space in app programs!
Michael
-Original Message-
From: Robert McKenzie [mailto:[EMAIL PROTECTED]]
Se
Actually MemHandleResize will always succeed when shrinking a handle, but
can fail when growing. You can simply be out of heap space, or if the handle
needs to be relocated and it's locked.
Now you mention the handle value is 0x8000 - which is a good start (the 0x8
at the beginning at
Any ideas what would cause MemHandleResize to throw a fatal exception ?
I have confirmed I am resizing it from 46 bytes to 83 bytes. I resize it
several times using the same code and it works fine. The handle is still
the same when it fails.
Here is my resizing code.
StringMemSize += len
izeof(UInt)))==NULL)
TerminateApp();
}
else
if(MemHandleResize(hBooksIndex,nBooks*sizeof(UInt))==memErrNotEnoughSpace)
TerminateApp();
pUInt = (UInt*)MemHandleLock(hBooksIndex);
pUInt[nBooks-1] = (UI
35 matches
Mail list logo