Using Indy 9 telnet client in a DLL

I am trying to use an Indy 9 Telnet Client (TidTelnet )in a DLL. I am
creating the object inside a "InitConnection" function exported by the DLL.
But I do not get any OnDatAvailable events.

InitConnection Psuedo Code

dmodTelnt := TdmodTelnet.Create(nil); :=;
dmodTelnet.APIClient.POrt := 4050;

I think it may be because the Telnet Client object is not hooked in the
application message pump because the data module is created with a "nil"

Any clues or ideas?

Richard Owen