How to reproduce.
download extension test.dll (attached)
This is the insides of test.cpp:
#include "stdafx.h"
extern "C"
{
__declspec (dllexport) void __stdcall RVExtension(char *output, int outputSize, const char *function);
}
void __stdcall RVExtension(char *output, int outputSize, const char *function)
{
//immediate return
strncpy_s(output, outputSize, "ok", _TRUNCATE);
//sleep for 5 sec
Sleep (5000);
}
Place it in Arma 3 root directory
Open up the Editor
Place a unit on the map and hit preview
Press Esc and copy paste this code into debug console
_null = [] spawn {
sleep 2;
hint "BEFORE";
sleep 0.1;
"test" callExtension "whatever";
hint "AFTER";
};
Execute
Now move around. In 2 seconds the extension will be called from inside spawned code (which supposed to start a parallel process) and the game will freeze for 5 seconds.