Hi Nuno,

I see a possible problem in your code. In the following lines:

>     aux1=norm(aux1, Registos[recordNum]);
>     aux2=norm(aux2, Registos[i]);

It appears that you are changing the values of aux1 and aux2. When you call
MemPtrFree, you must pass the same pointer that you obtained from MemPtrNew.

-----Steve Jackson

"nuno basto" <[EMAIL PROTECTED]> wrote in message
news:12846@palm-dev-forum...
>
> When I run my application, the debugger stops at  " MemPtrFree(aux1); "
for
> no reason. It acts like it has a breakpoint. But when I hit F10 (Step
Over)
> it continues in the same line and doesn't move no more.
>
> This is a piece of my code:
>
> char *aux1, *aux2;
>
> for (i=recordNum+1; i< numRecords; i++)
> {
>     aux1=MemPtrNew(StrLen(Registos[recordNum]));
>     aux2=MemPtrNew(StrLen(Registos[i]));
>
>     aux1=norm(aux1, Registos[recordNum]);
>     aux2=norm(aux2, Registos[i]);
>
>     sim=simil(aux1, aux2, NULL);
>
>     MemPtrFree(aux1);   <===== it stops here when "i" is 18
>     MemPtrFree(aux2);
> }
>
> Can anyone help me?
>
> Thanks.
>
> --
> Nuno Basto
>
>
>
>



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