[fpc-pascal]Ansistrings

BigMatt19 at aol.com BigMatt19 at aol.com
Thu Jun 20 18:00:13 CEST 2002


I will try that.  Thanks.

(But yes 0.9 of the compilier.  I have brought a similar issue here a couple times before but with no real resolution)

In a message dated Thu, 20 Jun 2002 11:03:40 AM Eastern Daylight Time, jonas at zeus.rug.ac.be writes:

> 
> 
> 
> On donderdag, juni 20, 2002, at 04:35 , BigMatt19 at aol.com wrote:
> 
> >   I have been having this issue since 0.9...
> 
> Version 0.9 of the compiler?
> 
> > After heavy string manipulation on an ansistring it will crash the 
> > program with a RTE216 (general protection fault).  I don't particularly 
> > like pchars and i dislike them even more because it seems that when I 
> > need to convert the ansistring to a pchar (@ansistr[1]) it messes up.  
> > Well really when I need to null terminate the ansistring with: 
> > ansist:=ansist+#0;
> 
> Ansistrings are always null-terminated. You can "convert" 
> an ansistring 
> to a pchar simply by doing pchar(ansistring_var).
> 
> 
> Jonas
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal 






More information about the fpc-pascal mailing list