Does anyone have a good example of how to properly copy resources between databases? I am trying to switch icons between two applications. My code is below. The problem is that whenever I switch the icon's the applications become unusable. (In fact the Emulator complains about: 'Applications 3.5 reports MemoryMgr.c, Line: 4359, Free handle') Obviously I'm doing something wrong with the resource when I move it from the one database to the other. Any ideas on what my problem is? FromResource=DmGetResourceIndex(FromApp, resIndex); ToResource=MemHandleNew(MemHandleSize(FromResource)); myerr=DmDetachResource(FromApp, counter,&ToResource); myerr=DmAttachResource(ToApp, ToResource,resType, resID); myerr=DmReleaseResource(ToResource); myerr=DmReleaseResource(FromResource); Thanks, -Peter -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
