🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Streams and TstringList

#117
From: Yehia Ahmed
Date: Mon, 26 Jan 2004 21:58
11 lines
1243 bytes
hello,
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
Sstream.Position := 0;
sstream.Write(pchar(rtfln.Text)^,length(rtfln.text) );
sstream.position := 0;
MainText.Lines.LoadFromStream(sstream);
Technical Details
Message-ID: <40158d9c@newsgroups.borland.com>
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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,1360c67603cded32,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-01-26 14:10:21 PST
From: "Yehia Ahmed" <yehiaeg@hotmail.com>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Streams and TstringList
Date: Mon, 26 Jan 2004 23:58:44 +0200
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 62.68.242.207
Message-ID: <40158d9c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075154332 62.68.242.207 (26 Jan 2004 13:58:52 -0700)
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