Welcome! Log In Create A New Profile

Advanced

fTrackDirectory into a Service

Posted by marcov 
fTrackDirectory into a Service
December 07, 2021 06:17PM
hi,

how can insert fTrackDirectory in a service?
if I add it to the initialization it runs in a loop or am I wrong?

thanks a lot
Re: fTrackDirectory into a Service
December 08, 2021 05:32PM
Hi,

from the Help:

WLanguage procedure
The WLanguage procedure is run in a WLanguage thread.
Caution: The following processes cannot be run in the threads:

opening windows with WLanguage functions such as Open, Use, Close, ... A specific management mode must be implemented if some windows must be handled in threads (rare case). For more details, see Managing the opening of a window in a secondary thread.
managing events.
managing timers.

For more details on threads, see Managing threads.

Kind regards,
Guenter Predl
office@windev.at
Re: fTrackDirectory into a Service
December 08, 2021 09:43PM
Hi,
sorry I did not understand. in practice I can not use it in a service?

Thanks
Re: fTrackDirectory into a Service
December 09, 2021 06:31AM
Hi,

it says:

fTrackDirectory (Function)

Detects the modifications performed on the content of a directory. Only the modifications performed on the files found in the directory are detected. In case of modification, a specific procedure is run in a thread.

Means, the procedure started by fTrackDirectory has to be run in a thread!

Kind regards,
Guenter Predl
office@windev.at
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: