[lazarus] Lazarus crash

Florian Klaempfl Florian.Klaempfl at gmx.de
Sat Mar 11 04:04:16 EST 2000


Marc Weustink schrieb:
> 
> At 18:43 10-03-2000 +0100, Florian Klaempfl wrote:
> > >
> > >   if lfFaceName = '' --> if Lenght(lfFaceName) = 0
> > >
> > > this might help. Let me know.
> >
> >This shouldn't make any difference, even the generated code should be the
> >same for
> >shortstrings as well as for ansistrings.
> 
> lfFaceName is an array[0..LF_FACESIZE - 1] of AnsiChar.
> 

In that case you should use the pchar functions! I suppose
it's a string passed to the gtk and gtk knows only zero
terminated strings i.e. it should be
if strlen(lfFaceName)=0 then
...
or
if ansistring(lfFaceName)='' then
...
should work too (but is much slower).






More information about the Lazarus mailing list