I'm a bit perplexed by the following note in the API documentation for oapiRegisterModule:
"The DLL should not delete the module instance in ExitModule. Orbiter destroys all registered modules automatically
when required."
1. How can Orbiter destroy the module instance, with no knowledge of...
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)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.