Board index » delphi » TIdCommandHandler.OnCommand and form creation: freeze!?
Christophe Porteneuve
Delphi Developer |
TIdCommandHandler.OnCommand and form creation: freeze!?2003-11-06 10:41:48 PM delphi283 Hi all, I've been poring over Google and GoogleGroups results for a while, and perusing the past 1,500 posts in here, but didn't find an answer. The deal is quite simple. I've got an app that sort of mimics mIRC's window behavior. When it gets a certain command, the command handler's OnCommand event handler triggers and, if necessary, creates a new form (that happens to be an MDIChild, which might be relevant?!). The very line: QueryForm := TfrmQuery.Create(Application); freezes my app. I haven't yet tried to figure out the considerable depths of Indy's behavior leading up to this event handler, which might eventually provide me with some thread/sync clue, but I assume Indy developers or experts might help me out here. What's going on? What's inside Indy that makes MDI form creation an issue? Do I need some Synchronize call on the current Indy thread, thereby needing to deport relevant info somewhere since the called method must be no-arg? -- Christophe Porteneuve Charg?d'Enseignement et de Projet "With sufficient thrust, pigs fly just fine" |