Le 30 mai 07 à 21:23 Soir, joe at strout dot net a écrit :
> On May 30, 2007, at 18:26 UTC, Arnaud Nicolet wrote:
>
>>> And meanwhile, does anyone have a solution to this problem (of
>> knowing
>>> when the last file has been processed) more clever than resetting a
>>> Timer on each OpenDocument call?
>>
>> Rather than a Timer, could you not use the Ticks method? You store
>> the last Ticks and compare with the actual (so you avoid the
>> inaccuracy of a Timer).
>
> I don't understand your suggestion. The point of the Timer is to give
> you a "callback" that will be invoked after you return the
> OpenDocument
> event, but presumably only when no more OpenDocuments are immediately
> forthcoming. I don't see how to accomplish this with Ticks.
Yes, you're right, my suggestion does not remove the need of a timer.
I just meant that the inaccuracy of a timer can be reduced by using
Ticks. But you don't want to only reduce that, I understood after I
posted.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|