We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35f930 commit de46c75Copy full SHA for de46c75
1 file changed
tests/test_interface/LPNSolverInterface/LPNSolverInterface.cpp
@@ -21,7 +21,13 @@ LPNSolverInterface::LPNSolverInterface() {
21
lpn_set_external_step_size_name_ = "set_external_step_size";
22
}
23
24
-LPNSolverInterface::~LPNSolverInterface() { dlclose(library_handle_); }
+LPNSolverInterface::~LPNSolverInterface() {
25
+#ifndef _WIN32
26
+ // On Windows, FreeLibrary can hang during process exit due to DLL cleanup issues.
27
+ // Skip explicit unload; the OS will clean up when the process terminates.
28
+ dlclose(library_handle_);
29
+#endif
30
+}
31
32
//--------------
33
// load_library
0 commit comments