You're not unlocking the memory and have called MemHandleLock one too many
times.  For every call to MemHandleLock you must somewhere have a
corresponding call to MemHandleUnlock. (or to MemPtrUnlock)

"C Srins" <[EMAIL PROTECTED]> wrote in message
news:35264@palm-dev-forum...
>
> Hi:
>
> I get a chunk overlock error (because some memory is not getting unlocked
somewhere in my code). So after I reset the emulator, and run the
application again, I observe the following message:
>
>
>
> "Xxxx" 1.0 has just performed an illegal operation. It performed a "line
1111 instruction". If this is the latest version of "Xxxx", please report
this to the application author.
>
>
>
> Any guidance as to what this means?
>
>
>
> BTW, I'm using a linked list in my code. The list is repopulated with
values read from the database when the form is viewed. So I am clearing the
list, to avoid "chunk overlocking". Apparently, it is not working. The code
goes somewhat like this:
>
>
>
> if(list.node != NULL) {
>
> while(list.node->next != NULL) {
>
> ChildFacultyRecord* temp = list.node;
>
> list.node = temp->next;
>
> Err freeErr = MemPtrFree(temp);
>
> }
>
> Err finalFreeErr = MemPtrFree(list.node);
>
> list.node = NULL;
>
> }
>
>
>
> Any insights into how to avoid chunk overlocking?
>
> I am using MemPtrNew to allocate the list in the first place.
>
>
>
> Any help to the above two queries would be greatly appreciated. They've
really got me foxed.
>
>
>
> Thanks
>
> With best regards
>
>
>
> csrins
>
>
>
>
>
> --------------------------------------------------------
>
> Feed  Your Greed !!!
> Get your 10MB Free space only at http://www.forindia.com NOW!
>
> --------------------------------------------------------
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to