🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13496

Re: Problem with Stringlist in service application

#13496
From: Victor G. Baron
Date: Sat, 11 Oct 2003 04:58
39 lines
2108 bytes
Tried several different ways, Gambit, with the same result.

Declared the TStrngList * in the thread headerfile and assigned the instance in
the Execute function - same issue.

Tried declaring and assigining within the body of the Execute function- same
issue.

tried using a TFileStream and TStringList->LoadFromStream - same issue.

Getting error 0eedfade everytime.

???????

Vic


On Fri, 10 Oct 2003 21:03:00 -0700, "Remy Lebeau \(TeamB\)"
<gambit47.no.spam@no.spam.yahoo.com> wrote:

>>:|
>>:|"Victor G. Baron" <vgbaron@hotmail.com> wrote in message
>>:|news:ppueovg2k6grk500sgq49urri491tltrk7@4ax.com...
>>:|
>>:|> TStringList * inputfile = new  TStringList();
>>:|
>>:|You are assigning the new TStringList instance to a pointer variable that is
>>:|local to the constructor only.  If you have declared a TStringList pointer
>>:|in the thread's header file, it will never be assigned correctly.  Once you
>>:|leave the constructor, you will then be trying to access an unassigned
>>:|pointer from that point on.
>>:|
>>:|
>>:|Gambit
>>:|

-- 
Vic Baron
I haven't lost my mind, it's backed up on disk somewhere!
Technical Details
Message-ID: <rn2fovgubqp92b3gv6te6rhj7kh0ih4p30@4ax.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
References: <ppueovg2k6grk500sgq49urri491tltrk7@4ax.com> <3f87807f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4f6a692a96789751
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-10 22:08:49 PST
From: Victor G. Baron <vgbaron@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Problem with Stringlist in service application
Date: Fri, 10 Oct 2003 21:58:54 -0700
Message-ID: <rn2fovgubqp92b3gv6te6rhj7kh0ih4p30@4ax.com>
References: <ppueovg2k6grk500sgq49urri491tltrk7@4ax.com> <3f87807f$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66.120.230.18
X-Trace: newsgroups.borland.com 1065848324 66.120.230.18 (10 Oct 2003 21:58:44 -0700)
Lines: 39
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