[fpc-devel] Re: StrPos giving a access violation

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Dec 8 13:46:01 CET 2005


Hi,

I put a breakpoint inside StrPos and stepped through the code.  It 
raised a "External SIGSERV" error on the second line:
   p:=strscan(str1,str2^);

I don't understand assembler so couldn't debug into StrScan.

Regards,
   - Graeme -



Graeme Geldenhuys wrote:

>   lFrom   := '';
>   lSearch := '';
>   lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
>   AssertEquals('Failing on 3', '', string(lResult));






More information about the fpc-devel mailing list