Currently the TWorkerThread is created with the first Virtual TreeView instance, instead of when actually needed.
Idea: Make TWorkerThread.AddTree() a class procedure that created the thread when needed. Turn the global variables WorkerThread and WorkEvent into private class vars.
Currently the
TWorkerThreadis created with the first Virtual TreeView instance, instead of when actually needed.Idea: Make
TWorkerThread.AddTree()a class procedure that created the thread when needed. Turn the global variablesWorkerThreadandWorkEventinto private class vars.