🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3314

Array of TThread

#3314
From: carmelo
Date: Tue, 11 Oct 2005 13:30
16 lines
1575 bytes
Hello eveybody,
I'm trying to make an array of TThread objects.
1) I used this code to create the array:
ThreadEX *VettCercaEmail1 = new ThreadEX[maxThreads];
2) I created a constructor with no parameters, to make possible to
create the array:
__fastcall ThreadEX::ThreadEX() : TThread(true)

I get no compiler error, but I get a crash on runtime:
"Access violation at address 00000000. Read of address 00000000"

How can I do??

I hope you can help me

Thank you very much in advance :-)
Technical Details
Message-ID: <1129037432.793042.96230@g44g2000cwa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d64d257d085c1822,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail
From: "carmelo" <csaffi@tiscali.it>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Array of TThread
Date: 11 Oct 2005 06:30:32 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <1129037432.793042.96230@g44g2000cwa.googlegroups.com>
NNTP-Posting-Host: 151.44.69.226
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1129037438 19543 127.0.0.1 (11 Oct 2005 13:30:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 11 Oct 2005 13:30:38 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g44g2000cwa.googlegroups.com; posting-host=151.44.69.226;
   posting-account=7Yyd9QwAAAC_PTHdtOxhuetjnLtlLQej