11-25-2024, 01:28 PM
(11-25-2024, 12:12 PM)jrmrhrb00 Wrote: Z-S,
... I think the answer to my question is a called subroutine will run in its own thread...
JR
Hi, JR
You are wrong. If the subroutine was called by a UI thread, then the subroutine will be executed in the UI thread.
If the subroutine is called by an event handler, then the subroutine will run in a separate thread of its own.
In addition, a method in the LitDev library allows you to call a subroutine to work in a separate thread:
LDCall.CallAsync(dll, extension, obj, method, arguments)