Subject Re: Error Code 239 IDAPI error
From Michael <michael@abstractservices.com.au>
Date Sun, 22 Oct 2023 18:01:11 -0400
Newsgroups dbase.getting-started

Akshat,

I actually run it and over lay it over a section of my main software so it looks like its part of it and the form is always open on screen. The timer activates the syncing routine every 15 seconds. The timer is disabled until the routine is complete and then activated again once completed.

I too noticed if you place an icon on the taskbar and you click it a few times, it causes a problem.

Thanks Akshat.


Akshat Kapoor Wrote:

> Good Afternoon Ken,
>
> > The most important thing is to release the timers completely when they
> > aren't being used, maybe even every so often in your code they should be
> > released (perhaps after performing some task, release the timer, then
> > create a new one ...). Timers are big resource hogs ...
>
> The problem I face is when the app is running and the taskbar icon is
> clicked 3 or 4 times.
>
> And this problem is there with forms which are supposed to be up and
> running in the background.
>
> Another form (incremental search form ) which uses timer for a short
> duration works fine without any issue.
>
> In all the forms the timer is declared in form_onOpen and clsoed in
> canClose events. In between it is just enabled / disabled
>
> Regards
> Akshat
>
>