JVCL Help:TJvChangeNotify.Active

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Specify whether monitoring is activated or not.


Pascal

 propertyActive: Boolean;


Description

Use Active to turn on and off monitoring of the directories in Notifications. Note that if FreeOnTerminate is true, the call to Active will return immediately, even if the thread is not closed yet. In this case you can't use code like:
JvChangeNotify1.Active := false;

 CheckForChangedFiles(); // thread might still be active here! 

To avoid this situation, set FreeOnTerminate to false.


See Also

TJvChangeNotify.Notifications


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