main logo
Subject: RE: Greenhorn problems mixing multiple timers on a form with an activex control
Author: "Tracy Pearson"
Posted: 2008/03/31 09:41:13
 
View Entire Thread
New Search


My experience with timers, they can start firing, or queuing up a massive
succession. When I use them, I now disable them when entering, and re-enable
on exit. If there are other data sessions involved in the application, make
sure you call a user defined method of the timer object from the event. Your
code for the timer should be in the user defined method.

HTH,

Tracy

-----Original Message-----
From: Joe Yoder
Sent: Friday, March 28, 2008 7:09 PM

I modified some sample code that uses the Winsock control to allow
continuously logging connection attempts to a remote server. I am using
three different timers to update status, handle message delivery timeout,
and to establish the rep rate. The code seems to work properly for a short
time but before long the form starts responding to key or mouse clicks very
sluggishly or not at all and I have trouble getting the form shutdown.

Can someone give me some pointers about what to do and not do in a situation
like this? Any debugging pointers?

TIA - Joe





 
©2008 Tracy Pearson
<-- Prior Message New Search Next Message -->