Hello David, Best is to start a new thread. Many modern email readers can sort on thread, so people not interested in this threaed will not see your message. Anyway I deleted followup so now it should be a new thread.
> Does ICS need to call a.pm? can i tell it not to, and let me do it? Ics need a working message pump. So if you have a program running in a closed loop as you have and enter once a while the message pump, then yes it will work. But do not call the message pump from within an event ! If you do you can be reentered. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, February 22, 2006, 00:08, David Hooper wrote: > I have a similar AV issue relating to Application.ProcessMessages; > unfortunately, i absolutely need to call a.pm (because my app does other > work as well as TCP stuff) > and it is in a base class that I _can not change_ > Does ICS need to call a.pm? can i tell it not to, and let me do it? > David > ----- Original Message ----- > From: "Surabaya" <[EMAIL PROTECTED]> > To: "ICS support mailing" <firstname.lastname@example.org> > Sent: Tuesday, February 21, 2006 2:59 AM > Subject: Re: [twsocket] Sending directly, not via Send Buffer >> Wow, my application really works much better after deleting all > application >> processmessages on my code... >> >> On 2/20/06, Francois Piette <[EMAIL PROTECTED]> wrote: >> > >> > > so I can't call application.processmessages at all? >> > >> > Sure you can, but not from an event handler or you'll have problem >> > reentering events. You have the >> > same problem with a simple button: in the button OnClick, program a loop >> > calling ProcessMessage >> > during 30 seconds. You'll see that during this period the user can click >> > again on the button and >> > your event handler is reentered, causing a lot of trouble to the code > you >> > have in the handler. You >> > can solve this problem by disabling the button while processing and >> > calling the message pump. But >> > speaking network, you can't [easily, without knowning exactly what you > are >> > doing] disable packet >> > transmission and so your event handlers are re-entered, causing a lot of >> > trouble in the component >> > (you receive the same data twice for example). >> > >> > > what can I call if I need my user interface updated? for example I >> > changed a >> > > Label's caption and need it refreshed when accepting data? >> > >> > You don't need to call ProcessMessages for that purpose, specially with > a >> > non blocking component >> > like ICS. Just change caption, nothing more, nothing less. >> > >> > >> > -- >> > Contribute to the SSL Effort. Visit >> > http://www.overbyte.be/eng/ssl.html >> > -- >> > [EMAIL PROTECTED] >> > Author of ICS (Internet Component Suite, freeware) >> > Author of MidWare (Multi-tier framework, freeware) >> > http://www.overbyte.be >> > >> > >> > -- >> > To unsubscribe or change your settings for TWSocket mailing list >> > please goto http://www.elists.org/mailman/listinfo/twsocket >> > Visit our website at http://www.overbyte.be >> > >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://www.elists.org/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be >> >> . >> -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be