The following module, in the InitModule implementation, creates a thread
and then waits for it to begin execution.
This deadlocks when Orbiter tries to load it.
int g_thread = 0;
DWORD WINAPI ThreadBody(LPVOID lpParam) {
g_thread = 1;
return 0;
}
DLLCLBK void InitModule(HINSTANCE hDLL)
{...