[fpc-devel] StrPos giving a access violation
Graeme Geldenhuys
graeme at mastermaths.co.za
Mon Dec 12 08:12:31 CET 2005
Marc Weustink wrote:
> StrPos is expecting 2 PChar params and not a Pointer.
> Please use PChar(lFrom) and PChar(lSearch) to let the compiler make the
> proper string to PChar conversion.
> You never ever can cast a string to a pchar using Pointer()
I see your point, and amended my code. Nonetheless, Delphi never
through a AV. I see Jonas created a fix for it though.
Regards,
- Graeme -
More information about the fpc-devel
mailing list