Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dlls unloading order in Unix and Windows

I have 2 dlls: A and B.

From a code in dll A, I am loading dynamically the dll B (using dlopen on Unix and LoadLibrary on Windows). Is it guaranteed that B will be unloaded before A?

Is there any difference between Unix and Windows behavior?

like image 468
Igor Avatar asked Dec 01 '25 05:12

Igor


1 Answers

There is no guarantee as to which DLL will be unloaded first (Unix and WIndows do not differ on this point).

like image 98
Motti Avatar answered Dec 05 '25 13:12

Motti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!