🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by carmelo Tue, 11 Oct 2005 13:30
Array of TThread
#3314
Author: 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 :-)
Re: Array of TThread
#3315
Author: carmelo
Date: Tue, 11 Oct 2005 20:12
2 lines
1266 bytes
Ok!
I solved this problem creating an array of pointers...
Re: Array of TThread
#3317
Author: Roy Glunt
Date: Thu, 13 Oct 2005 05:06
7 lines
1596 bytes
what works better is to use a TList instead of an array.

"carmelo" <csaffi@tiscali.it> wrote in message 
news:1129061533.277084.224820@g47g2000cwa.googlegroups.com...
> Ok!
> I solved this problem creating an array of pointers...
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads