That's what I thought.  =)

Actually, it looks kind of like you might be deleting a locked
handle somewhere, as you thought.  Also, try changing the incrementation
of your counters in your loop to j++ and i++.  Just a thought...
the code looks like it should work, but when I get odd errors like
that, it often is a case of postincrementation where I should be 
preincrementing, or pretesting where I should be posttesting, or
somesuch.

-Rus

>-----Original Message-----
>From: Tim Astle [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 05, 2000 9:42 AM
>To: Palm Developer Forum
>Subject: Re: handle question - please help
>
>
>Ugh, sorry about that previous post.  I hit ctrl+Enter by mistake.
>
>> Perhaps you're nesting the call in a
>> function that is actually causing the problem?
>
>Well, on my frmCloseEvent, I call this function.
>
>
>void DisSelectViewFreeHandles()
>{
>     int i, j;
>
>     for(i = 0; i < DIS_TABLE_ROWS; ++i)
>          for(j = 0; j < DIS_TABLE_COLUMNS; ++j)
>               if(DisTableHandles[j][i])
>                    MemHandleFree(DisTableHandles[j][i]);
>}
>
>DisTableHandles is a global 2 dimentional array.  I just want 
>to make sure
>all the table field handles have been freed upon exiting of 
>the form.  I
>don't want a memory leak to exist.
>
>
>Timothy D. Astle
>
>People on Jolt cola write the funniest things.
>
>                                     A-10 Obedience Guide,
>                                     Kitty Hawk Studios
>
>
>
>-- 
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

-- 
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