Hi!
This is the code I use for opening a web page with Web Clipping. After
navigating through various links, and trying to get back I get
"MemoryMgr.c: Error 3036 Chunk over-locked", I think the error is in the
Memory Handle.
I would appreciate any help with this problem which I can't resolve.
Thanks in advance to everybody!
Gonzalo
Err OpenURL(CharPtr url)
{
Err err = 1;
DmSearchStateType searchState;
UInt cardNo;
LocalID dbID;
char *ptr;
VoidHand mem;
// Make sure Clipper is present
err = DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication, sysFileCClipper, true, &cardNo, &dbID);
if(err)
FrmAlert(NoWebClippingAlert);
else {
mem=MemHandleNew (StrLen(url)+2);
(void *)ptr=MemHandleLock(mem);
StrCopy((char *)ptr,url);
err=MemPtrSetOwner(ptr, 0);
if(err)
FrmAlert(NoWebClippingAlert);
else
// Launch Web Clipping with the URL
err = SysUIAppSwitch(cardNo, dbID,
sysAppLaunchCmdGoToURL, ptr);
}
return err;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/