Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Saurabh Agarwal
Hi, I am trying to lock/unlock a memory chunk. But after some no of iterations, it gives error MemoryMgr.c, Line:3061, Chunk over-locked. Can anybody tell me where I have done mistake. I have used MemHandleLock and MemHandleUnlock in pairs only i.e first called MemHandleLock and then

Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Aaron Ardiri
I am trying to lock/unlock a memory chunk. But after some no of iterations, it gives error MemoryMgr.c, Line:3061, Chunk over-locked. Can anybody tell me where I have done mistake. I have used MemHandleLock and MemHandleUnlock in pairs only i.e first called MemHandleLock and then

Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Saurabh Agarwal
sorry i could not understand ur reply. u mean to say that MemHandleLock increases the count and then MemHandleUnlock decreases the same count. and so the net affect on this count remained zero. Is this waht u mean?? Or Lock and Unlcok increases a count by one. So I can lock-unlock that chunk at

Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Aaron Ardiri
sorry i could not understand ur reply. u mean to say that MemHandleLock increases the count and then MemHandleUnlock decreases the same count. and so the net affect on this count remained zero. Is this waht u mean?? if the lock count is greater than 16, it'll barf. end of story. so, you

Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Chris Tutty
From: Saurabh Agarwal [EMAIL PROTECTED] sorry i could not understand ur reply. u mean to say that MemHandleLock increases the count and then MemHandleUnlock decreases the same count. and so the net affect on this count remained zero. Is this waht u mean?? Yes, if your code is correct. What

Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Alan Ingleby
Aaron Ardiri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sorry i could not understand ur reply. u mean to say that MemHandleLock increases the count and then MemHandleUnlock decreases the same count. and so the net affect on this count remained zero. Is this waht u mean??