IdThreadMgrPool1 and C++

Giganews Newsgroups
Subject: IdThreadMgrPool1 and C++
Posted by:  gi…@ici.net
Date: Thu, 02 Oct 2003

Hello.

I have been using Indy for my C++ projects form a
few years and loving it.

I'm looking to rewrite my POP IMAP email class using
IdThreadMgrPool1.

I have to say I can't seem to get to first base with this class.
The best I can pull off is a "Thread class not specified" error. :)

I can not find any C++ examples of using this class.
I assume I need to create an instance of IdThreadMgrPool1 and
do something like:

TIdThread *NewThread  =  IdThreadMgrPool1->GetThread();

This compiles fine but throws the exception listed above.
It seems before I use the class I need something like:

IdThreadMgrPool1->ThreadClass = ???;

Where the ??? would be some form of TIdThread class.

Can anyone provide me with a simple example of the proper
use of IdThreadMgrPool1 in C++ flavor?

Thanks.
Jack

Replies