there are some possible problems: -have you assigned the gadget memory (ie. MemHandleNew) prior to acquiring the data? (and on the flip side do you free that memory on form destruction?) -do you do this every time the form is recreated?
check out : http://www.palmos.com/dev/support/docs/recipes/extended_gadgets.html for more info. the error makes it sound as though you are trying to lock down an invalid chunk of memory. can't say much more without more code though. E/. On Thu, 2002-07-18 at 02:11, quennie wrote: > Hi. > > I have encountered this problem " MemoryMgr.c, Free handle". > > I'm using the Falch.net IDE (C++) and compile a program using the Emulator. > > The following code: > > MemHandle dataH; > (void *)dataH = FrmGetGadgetData(form, gadgetIndex); > > if (dataH) > { > UInt8 *data; > data = (UInt8 *)MemHandleLock(dataH); -> error happened from here. > } > > I have the assign the memHandle dataH to a value since i want to make use of > the variable to do other things. > > Could someone help me? Do appreciate with the help. > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
