JVCL Help:TJvChangeNotify.FreeOnTerminate
JVCL Help: TJvChangeNotify.FreeOnTerminate Property
Search in JVCL Help
Search in all projectsSummary
Determines how the internal thread is controlled.
Pascal
propertyFreeOnTerminate: Boolean;
Description
Set FreeOnTerminate to True if you want the component to automatically release the listening thread when you set Active to false. If you set FreeOnTerminate to False, the component will suspend the thread and stop for it to terminate before freeing it. If you set FreeOnTerminate is true, setting Active to false will eventually stop the thread, but there might be a slight delay even if the call to Active returns immediately. The delay depends mostly on the number of folders that are monitored.
To be able to set Active to False in the OnChangeNotify, you must set FreeOnTerminate to True. If you fail to do so, the program will most likely hang.
See Also
TJvChangeNotify.OnChangeNotify
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page