Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Indy Error ?

www.cryer.info
Managed Newsgroup Archive

Re: Indy Error ?

Subject:Re: Indy Error ?
Posted by:"Mike C" (mikecooperinwg-nospam@ic24.net)
Date:10 May 2006 11:33:09

Many thanks to my two respondents.

Having skipped from D5 to D2006 I thought I should get into the
real world and use the new components (+ not realising I could
still use the old ones). I'm definitely in 'learning mode'. I
haven't crossed swords yet with threads, so I can see I've got
a lot of studying to do.

Thanks for the code sample - when I get the chance to read it
thouroughly, I'm sure it will be very helpful to get me
started.

The strange thing, though, is that if I comment out the single
Application.ShowMainForm := false; line in the dpr file, and
then minimize the form to the Tray before I use telnet
(ie: mimicking what I intended in the first place) then things
work as I had expected - the telnet conversation appears in
the listbox. And that is taking no account of making
thread-safe code.

With the line in, things go haywire.

>//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
>
>program IndyError;
>
>uses
>  Forms, Windows,
>  IndyErrorMain in 'IndyErrorMain.pas' {frmIEMain};
>
>{$R *.res}
>
>begin
>  Application.Initialize;
>  Application.Title := 'IndyError';
>  Application.CreateForm(TfrmIEMain, frmIEMain);
>
>  Application.ShowMainForm := false;
>      // hides MainForm at App.Run
>
>  Application.Run;
>end.
>
>//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive