~MISolver() is outside of the dll
This leads to a segfault as the allocation then happens inside the dll, and the deallocation in the application.
This leads to a segfault as the allocation then happens inside the dll, and the deallocation in the application.