I narrowed the problem down to one call. I have a few bitmaps that I use
over and over again in my app so in StartApplication I do the following for
each one:
resH = DmGetResource(bitmapRsc, TriggerClosedBitmap);
ErrFatalDisplayIf(!resH, "Missing Closed Trigger bitmap");
TriggerClosed = MemHandleLock(resH);
Then from my StopApplication id do this for each one:
resH = MemPtrRecoverHandle(TriggerClosed);
ErrFatalDisplayIf(!resH, "Missing Closed Trigger bitmap");
MemHandleUnlock(resH);
DmReleaseResource(resH);
The call to DmReleaseResource is what's causing the crash when my app is in
Flash. The error I get is: "MemMgrNew.c line 1812: Not a Handle"
Here's a question: What does DmReleaseResource do, exactly? Is there any
way around this if my app is in Flash? Help appreciated.
Thanks,
Dan Hewins
Synergy Solutions, Inc.