🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #121

Re: Streams and TstringList

#121
From: Harley Pebley
Date: Mon, 26 Jan 2004 23:04
15 lines
1491 bytes
> why there is an error when assigning the datastring to the .test propery,
> 
> Sstream := tstringstream.Create('');
> MainText.Lines.SaveToStream(sstream);
> rtfln.Text  := sstream.datastring; ---------------------->Error Eaccess
> violation

Does rtfln exist?
Can you replace sstream.datastring with 'test' and have it work?
In the IDE, can you put a breakpoint on that line and evaluate (Ctrl-F7)
all four values properly? Probably one of them (I'd guess rtfln) will give
an error which will lead to to what's not working properly.

HTH,
Harley Pebley
Technical Details
Message-ID: <gvggzwexkn20.ypzup1tc5hyd$.dlg@40tude.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40158d9c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,1360c67603cded32
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-01-26 15:10:16 PST
From: Harley Pebley <harley_pebley@idahotech.com>
Subject: Re: Streams and TstringList
Newsgroups: borland.public.delphi.language.objectpascal
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: Idaho Technology
References: <40158d9c@newsgroups.borland.com>
Date: Mon, 26 Jan 2004 16:04:35 -0700
Message-ID: <gvggzwexkn20.ypzup1tc5hyd$.dlg@40tude.net>
User-Agent: 40tude_Dialog/2.0.5.1
NNTP-Posting-Host: 12.30.217.2
X-Trace: newsgroups.borland.com 1075158274 12.30.217.2 (26 Jan 2004 15:04:34 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail