i guess it should be

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

important part was not change to MemPtrunlock, but change in for(;;) - 6
resources were got and locked and only 5 of them unlocked and released

Dmitry Grinberg wrote:
> that would fatal alert, codemaker :-P
> read the sdk or reread your code
> 
> On 12/8/08, codemaker <[EMAIL PROTECTED]> wrote:
>>         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?
>>
>> Yes
>>
>>         for(i=0;i<6;i++)
>>         {
>>                 MemPtrUnlock(orbs[i].orbH);
>>                 DmReleaseResource(orbs[i].orbH);
>>         }
>>
>>
>>
>>  --
>>
>> For information on using the ACCESS Developer Forums, or to unsubscribe, 
>> please see http://www.access-company.com/developers/forums/
>>
> 
> 

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

Reply via email to