re: Camera Library Load/Remove and Invalid Chunk Pointer
Okay, Eventually found this one. The Codewarrior code was mapping the cmdPBP to the correct structure using mPowerCtx = (TmPowerCtx)cmdPBP which worked fine for the Codewarrior code but when this same structure was passed back in the callframe to SysUIAppSwitch it did not pass back correctly after the called application did a MemPtrSetOwner(mPowerCtx,0); SysUIAppSwitch(yada yada yada) On returning to the yada yada application it failed to correctly access the cmdPBP - it could actually read it fine but the emulator (bless its little cotton sox) threw lots of error reading unowned chunk type messages (that lazy slob simulator said nothing). Anyway, the simulator/emulator would finally blow a gasket when trying to exit this app. Solution was to: mPowerCtx = MemPtrNew(sizeof(TmPowerCtx)); MemMove(mPowerCtx,cmdPBP,sizeof(TmPowerCtx)); instead of mPowerCtx = (TmPowerCtx)cmdPBP; But I guess everyone else in the world knows this. rgds -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Camera Library Load/Remove and Invalid Chunk Pointer
Hi, Please bear with me while I explain a fairly complex (at least to me) setup which is causing an Invalid Chunk Pointer. I have one application (written in PocketStudio although I'm pretty sure that is not relevant) calling a second app (Codewarrior) which (in its simplest form) does a find library, load library, CameraLibraryOpen, TurnPreviewOn then TurnPreviewOff, CameraLibraryClose, SysLibRemove then does a SysUIAppSwitch back to the calling application. This all works fine but when I go to close the calling application I get an Invalid Chunk Pointer. This happens if I only load and remove the library (no camera library open/close) but does not happen if I don't touch the library in the called routine so it looks strongly like it is related to loading and removing the library. The remove library is not throwing an error. I also tried switching back to a different app but same result - the switch back works but I get the invalid chunk ptr on closing THAT app. I noted the lack of support for library loading on simulators but sadly I get identical behaviour on the device. Any ideas what further investigation I can do into this? thanks Andrew Waites -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
T3 Calendar vs Datebook
Hi, Our app has a backup function which copies DBs to the SD card. This is used when roadwarriors lose their customer or product DBs. For completeness I've been also backing up the main Palm DBs (Datebook, ToDos, Memos, etc). On the T3 these PIMs have been replaced (sort of) with new versions and DBs but the doco (what little there is) indicates that the old DBs still exist (sort of - as in as some kind of write through pseudo DB) to support legacy apps. All seems to mostly work but we are seeing some nasty crashes on T3s when recovering DatebookDB from SD back to the Palm (using standard VFS calls). This does not seem to happen all the time - don't you just love that. I've not been able to locate layouts for the new databases. But could probably just work out if the app is on a T3 and back up only the new DB (Calendar) if that is all I need to do. Sadly, some other datebook related things are not all that happy. Our app does write to the Datebook and stores the RID of the Datebook entry so we can allow the user to manage our entries directly through the standard app. This now sort of works but not entirely - once again I suspect this has something to do with how the T3 interfaces to the old datebook format. So, any ideas where I can find some more info on what is going on here? I've looked in the palmone area. thanks Andrew Waites -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MemHandleUnlock not Succeeding on T2
Hi, I have a very wierd situation on code that has been working fine on OS4 and OS5.0 (T1). This little gem (being memory related ) is wonderfully transient but after loading up production code with lots of traces it looks increasingly like MemHandleUnlock calls are sometimes completing successfully but leaving handles locked. Specifically this is biting me when I am trying to expand records (Unlock, Resize, Lock). I have only been able to reproduce the errors my users are seeing by forcing extra (un-unlocked) locks on the handle before I start this sequence. Has anyone seen anything like this? thanks Andrew Waites Just4Markets Pty Ltd -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
No overwrite when launching off Card
Hi, Ths Extension card section in the Palm doco indicates that if you launch an app off the card and the same appexists on the Palm then you will be prompted whether or not to replace it In my testing if I copy an app from Palm to card then launch off the card there is no prompting..it runs the existing app on the Palm. This is true if I have different versions of the app on the Palm and the card. I have tried copying to a different .prc filename on the card.. no joy. If I manually set the creator on the Palm to a different creator I trigger the popup... It looks like PalmOS is being too smart and saying ah but that is the same creator so they must know what they are doing, I'll just run from the Palm (no copy). This is wierd and I am happy to believe I am doing something stupid but ..stupidity being what it is .. I can't think what. Has anyone seen this before? rgds Andrew Waites -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ExgDBRead to Card 1 (Memory Card)
Hi, I'm struggling with using Exchange manager to backup databases to a memory card. I've looked all over the place and believe this is the way to go but am open to alternate approaches. My problem is that I cannot see how to force the db to be written to card 1. CardNo is an argument to ExgDBRead but the doco indicates that it is a return value only. Any ideas how I can tell DBRead to put the DB onto the memory card? thanks Andrew Waites -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/