Threaded script Execute and DWScript thread safe are not very clear about this situation:
A script is run in the context of a worker thread. While a script function is executing, called by the worker thread, it calls Delphi code which does some processing. This processing uses IPC to communicate with another thread (actually the mainthread) which will eventually call a procedure in the same script. This works nicely, at least from simple tests I conduced. But is this really allowed ?