[lazarus] String Addition FCL Problem

Peter Vreman pfvreman at wins.uva.nl
Fri May 28 06:24:24 EDT 1999


> I used a snapshot that I grabbed last night from the web.
> 
> I rebuilt gtk and FCL from web snapshots also. I can try again tonight
> If I have trouble I will try and reproduce the problem again. I am not sure
> of the 
> date on the snapshot itself.
I can only get a crash when i load idesourceutil.pp as first file in the
lazaruside. But i don't get why it would crash because the code generated
for the ansitemps looks correct.

Peter


> 
> Cliff
> 
> 
> -----Original Message-----
> From: Peter Vreman [mailto:pfv at cooldown.demon.nl]
> Sent: Thursday, May 27, 1999 4:35 PM
> To: lazarus at miraclec.com
> Subject: RE: [lazarus] String Addition FCL Problem
> 
> 
> > I will try to hack something together until we resolve this.
> > 
> > I have to be able to append strings together. TiniFile would also be nice
> > for building the config and project file but it has the H switch also. I
> > have a copy of tinifile renamed so that I can use this until we figure
> this
> > out. I am going to try and remove the switch tonight and see if  I can use
> > this renamed TIniFile.
> I can't reproduce the error with the latest snapshot of the compiler, the
> tinifile works correct here. Did you recompile everything (also FCL) with
> a snapshot dated after 20 may ?
> 
> Peter
> 
> > 
> > Cliff
> > 
> > -----Original Message-----
> > From: Peter Vreman [mailto:pfv at cooldown.demon.nl]
> > Sent: Thursday, May 27, 1999 1:39 PM
> > To: lazarus at miraclec.com
> > Subject: RE: [lazarus] String Addition FCL Problem
> > 
> > 
> > 
> > > I was trying to generate a test app that was doing it last night. I then
> > > removed the H switch a bang the problem went away. I also noticed that
> > > TIniFile uses the 
> > > H Switch also. Any attemp to write a string using TIni will throw the
> > error.
> > > 
> > > obj := TIniFile.Create('/lazaruside/test.ini');
> > > obj.WriteString('Files','Units',mystr);
> > > 
> > > 
> > > At the end of tini file is a statement to this effect.
> > > 
> > > TheStringList.Add(brackets[0] + section + brackets[1]);
> > > 
> > > 
> > > This unit does use the h switch the next thing for me to do is to remove
> > it
> > > and see if it will work correctly.
> > > 
> > > 
> > > BTW this one does seem to be very stealth it only happens when things
> are
> > > just right. It seems like it is a combination of things that causes the
> > > error.
> > I'll take a look at it. But removing the $H+ switch will use shortstrings
> > instead of ansistrings, i don't know if you'll like that ;)
> > 
> > Peter
> > 
> > 
> > _________________________________________________________________
> >      To unsubscribe: mail lazarus-request at miraclec.com with
> >                 "unsubscribe" as the Subject
> >     archives at http://www.miraclec.com/list_archives/lazarus
> > 
> > _________________________________________________________________
> >      To unsubscribe: mail lazarus-request at miraclec.com with
> >                 "unsubscribe" as the Subject
> >     archives at http://www.miraclec.com/list_archives/lazarus
> > 
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
> 






More information about the Lazarus mailing list