Re: Fastcode CharPosRev B&V 0.6.2



"Dennis" <marianndkc@xxxxxxxxxxxxxxx> wrote in message
news:456c4b8b$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi John

Can you explain why the function call in the errortrap is different from
the
call in the validation function?

My functions have a bug but it is not reveiled in the ErrorTrap call.

Result := CharPosRevFunction(Ch, S) = 0;
if not Result then
begin
ErrorTrap(VALIDATENO, Ch, S);

The Length field or the refcount field must be different there.

The call to the ErrorTrap procedure increments the string reference count

You can see this if you put a watch on:-

pintegerarray(cardinal(s)-8)^


--
regards,
John

The Fastcode Project:
http://www.fastcodeproject.org/


.