Hello Folks,
I have a very strange problem: I have a database containing bitmap resources
which I open and close - but the resources are not closed for no particular
reason.

The opening is as follows:
        orbs[0].orbH=DmGetResource(bitmapRsc,OrbYellow);
        orbs[0].orbP=MemHandleLock(orbs[0].orbH);
        orbs[1].orbH=DmGetResource(bitmapRsc,OrbPink);
        orbs[1].orbP=MemHandleLock(orbs[1].orbH);
        orbs[2].orbH=DmGetResource(bitmapRsc,OrbDarkGrey);
        orbs[2].orbP=MemHandleLock(orbs[2].orbH);
        orbs[3].orbH=DmGetResource(bitmapRsc,OrbLightBlue);
        orbs[3].orbP=MemHandleLock(orbs[3].orbH);
        orbs[4].orbH=DmGetResource(bitmapRsc,OrbOrange);
        orbs[4].orbP=MemHandleLock(orbs[4].orbH);
        orbs[5].orbH=DmGetResource(bitmapRsc,OrbLightGrey);
        orbs[5].orbP=MemHandleLock(orbs[5].orbH);
        

The closing is then done like this:

        for(i=0;i<=5;i++)
        {
                MemHandleUnlock(orbs[i].orbH);
                DmReleaseResource(orbs[i].orbH);
        }

Weirdly, the resources are not closed.

Anyone have any ideas why?

All the best
Tam Hanna



-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to