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


I have seen problems with random errors saying a property does not exist for
an object. I have traced this to when the timer is running in one data
session, and the user has gone to a second data session when the timer
fires. I have not seen this when the event calls a method on itself before
attempting to access any other objects. It appears it forces itself back
into the correct data session and all pieces of objects can be seen again.
This also happens with the use of BindEvents.

Tracy

-----Original Message-----
From: MB Software Solutions General Account
Sent: Monday, March 31, 2008 10:22 AM

Tracy Pearson wrote:
> 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.
>

Hi Tracy,

I agree with your disabling on entry/re-enabling on exit concept--I do that
too, but I'd like to understand your logic of the using the UDF instead of
putting the code in the Timer method.

tia!
--Michael




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