11-06-2016, 03:37 PM
Hi Gintaras,
Macros are run immediately as a thread and functions are placed on a stack and code that is calling a function is only resumed after the function returns (correct?). That is why I have calls to a macro (and not a function) if I want say to produce a warning message (could take forever to be answered). It allows the primary code to continue with the necessary actions, while simultaneously warning the user.
I wondered whether this would be also possible using a function, or would that completely go against the whole concept of functions?
Anyway I experimented whether 'run in a separate process' would do that, but that doesn't change anything I am aware of.
Secondly, I have not been able to find an example (or equally possible: I do not understand the examples :-) of the use of a shared function. Could you please provide me with one?
Thank you !
Regards,
GertC
Macros are run immediately as a thread and functions are placed on a stack and code that is calling a function is only resumed after the function returns (correct?). That is why I have calls to a macro (and not a function) if I want say to produce a warning message (could take forever to be answered). It allows the primary code to continue with the necessary actions, while simultaneously warning the user.
I wondered whether this would be also possible using a function, or would that completely go against the whole concept of functions?
Anyway I experimented whether 'run in a separate process' would do that, but that doesn't change anything I am aware of.
Secondly, I have not been able to find an example (or equally possible: I do not understand the examples :-) of the use of a shared function. Could you please provide me with one?
Thank you !
Regards,
GertC