MtxVec VCL
|
Place the actual threading algorithm in this event.
The actual algorithm, that needs to be threaded or it's progress monitored, should be placed within this event. If is true, this event will be called once for each iteration. Iteration count and range is defined with properties Min, Max, Loops and a boolean property InfiniteLoop. If InfiniteLoop is set to True, the thread will be calling OnCompute event until Cancel property is set to True. If InternalLoop is false, then OnCompute is called only once.
OnCompute event is executed within a thread and all restrictions regarding the calls to VCL and not thread safe libraries apply to the code placed within the OnCompute event. Do not call Synchronize to update the progress indicators from within the OnCompute event. Use the OnProgressUpdate event which runs in the main thread and does not require a call to Synchronize procedure.
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|