Skip to content

Commit de46c75

Browse files
committed
interface changes
1 parent f35f930 commit de46c75

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_interface/LPNSolverInterface/LPNSolverInterface.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ LPNSolverInterface::LPNSolverInterface() {
2121
lpn_set_external_step_size_name_ = "set_external_step_size";
2222
}
2323

24-
LPNSolverInterface::~LPNSolverInterface() { dlclose(library_handle_); }
24+
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+
}
2531

2632
//--------------
2733
// load_library

0 commit comments

Comments
 (0)