11-26-2024, 03:23 PM
(11-26-2024, 12:56 PM)jrmrhrb00 Wrote: AB.(translated by Google translator)
Your comments are right if in fact a subroutine does not call a different thread and stays in the UI thread when called.
JR
JR,
I suggest discussing everything as precisely as possible. This might be useful for someone else learning Small Basic.
There are two different objects in my consciousness:
- subroutine
- and event handler
But, the event handler runs in its own parallel thread.
A running subroutine calls another subroutine on the same thread on which it itself is running.
To call another subroutine in a new thread, you must use the LDCall.CallAsync(dll, extension, obj, method, arguments) method.
Do you agree?