 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
carmelo Guest
|
Posted: Tue Oct 11, 2005 1:30 pm Post subject: Array of TThread |
|
|
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 :-)
|
|
| Back to top |
|
 |
Pierreq Guest
|
Posted: Sat Oct 22, 2005 11:17 am Post subject: Re: Array of TThread |
|
|
Hello.
I think U should use TList Component instead.
ThreadEX *VettCercaEmail1 = new ThreadEX();
and in ThreadEX() creator do TList1->Add(this);
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|