LocalID changed by MemHandleResize?

2008-02-11 Thread Luc Le Blanc
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-21 Thread Roger Stringer
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)

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Pit
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Chris Apers
]> 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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Pit
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Chris Apers
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Pit
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. > > > > > > >

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Chris Apers
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-20 Thread Pit
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/

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Chris Apers
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

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Pit
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 >

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Chris Apers
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:

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Pit
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 >

Re: Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Chris Apers
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

Problem with MemHandleResize - memErrChunkLocked

2004-04-19 Thread Pit
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

Re: DmResizeRecord and MemHandleResize

2004-04-02 Thread Wendel
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

Re: DmResizeRecord and MemHandleResize

2004-04-02 Thread Ben Combee
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

DmResizeRecord and MemHandleResize

2004-04-02 Thread Wendel
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

Re: MemHandleResize

2004-02-05 Thread Brad Figler
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

MemHandleResize

2004-02-05 Thread Fruber Malcome
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

Re: MemHandleSize - MemHandleResize

2003-08-14 Thread rguevara
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: > > >

Re: MemHandleResize

2003-08-14 Thread Dave Carrigan
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

Re: MemHandleSize - MemHandleResize

2003-08-14 Thread bullshark
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

Fw: MemHandleSize - MemHandleResize

2003-08-12 Thread rguevara
-- 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

MemHandleSize - MemHandleResize

2003-08-09 Thread rguevara
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

MemHandleResize

2003-08-08 Thread rguevara
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/

Re: MemHandleResize problem

2002-11-23 Thread RaNo
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/

MemHandleResize problem

2002-11-23 Thread Rajasekhar Reddy P
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

Listbox-MemHandleResize probelm

2002-11-22 Thread Rajasekhar Reddy P
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

RE: BTW, about MemHandleResize

2001-11-27 Thread Michael Glickman
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

Re: BTW, about MemHandleResize

2001-11-27 Thread Ben Combee
"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, about MemHandleResize

2001-11-27 Thread Michael Glickman
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

RE: MemHandleResize

2001-08-09 Thread Gavin Maxwell
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

MemHandleResize

2001-08-09 Thread Mike Montalvo
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

MemHandleResize() Problem

2000-03-21 Thread prashant_g
izeof(UInt)))==NULL) TerminateApp(); } else if(MemHandleResize(hBooksIndex,nBooks*sizeof(UInt))==memErrNotEnoughSpace) TerminateApp(); pUInt = (UInt*)MemHandleLock(hBooksIndex); pUInt[nBooks-1] = (UI