Search results

  1. A

    API Question Why shouldn't you delete an oapi::Module?

    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...
  2. A

    Advanced Question InitModule deadlock

    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) {...
Back
Top