Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Apr : BeforeCommandHandler hinders application form show
| Subject: | BeforeCommandHandler hinders application form show |
| Posted by: | "Moore" (moo..@hotmail.com) |
| Date: | 2 Apr 2008 23:38:07 |
I have a form where i create several TIdCmdTCPClient at runtime who connect to an external server to receive commands and display data depending on information from these commands,
Each CmdTCPClient has several command handlers defined (all have the same ones),
the problem is if I assign the OnBeforeCommandHandler normally the main form does not show even though the task manager shows that it is running, if I deactivate this event the form shows normally,
Indeed even if the event is activated it shows normally unless I show the data and parameters in a list box (list.Items.Add(Adata)), sometimes with a "Canvas does not allow drawing" error
if the event does not have any display methods it does not impede form show, but I need to show the data to the user.
thns..