🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #175

Re: D8.NET: FillChar

#175
From: Jeffrey A. Wormsley
Date: Tue, 27 Jan 2004 14:48
21 lines
1495 bytes
"Nick Hodges (TeamB)" <nickhodges@yahoo.com> wrote in 
news:4015ce25$1@newsgroups.borland.com:

>> The end result is all numeric values zero, all strings empty. 
> 
> .Net does this by default.

???  The record in question has not left scope, so why would it be GC'ed?  

Maybe this is a little clearer?

Begin
  MyRecord.Sub.A := 25;
  MyRecord.Sub.B := 'Some text';
  MyRecord.C := 123;
  // This should display 'B = Some text'
  MessageDlg('B = ' + MyRecord.Sub.B, mtInformation, [mbOk], 0);
  FillChar(MyRecord, SizeOf(TMyRecord), #00);
  // This should display 'B = '
  MessageDlg('B = ' + MyRecord.Sub.B, mtInformation, [mbOk], 0);
End;
Technical Details
Message-ID: <Xns947D6E080EA3Ajwormsleyatdebitekdo@207.105.83.66>
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: <Xns947CAF7E397A7jwormsleyatdebitekdo@207.105.83.66> <4015ce25$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,798a3bcfcff1f8c
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-27 08:11:14 PST
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: D8.NET: FillChar
From: "Jeffrey A. Wormsley" <jwormsley@nospam.debitek.com>
References: <Xns947CAF7E397A7jwormsleyatdebitekdo@207.105.83.66> <4015ce25$1@newsgroups.borland.com>
Message-ID: <Xns947D6E080EA3Ajwormsleyatdebitekdo@207.105.83.66>
User-Agent: Xnews/06.01.10
NNTP-Posting-Host: 68.152.88.12
Date: 27 Jan 2004 07:48:58 -0700
X-Trace: newsgroups.borland.com 1075218538 68.152.88.12 (27 Jan 2004 07:48:58 -0700)
Lines: 21
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