Dlopen on a library with a static member that throws an exception in the constructor - causes an interrupt

I am trying to load a dynamic library using the dlopen function. This library contains a static object that throws an exception in its constructor. I have a "try-catch (...)" block around the dlopen call, but it does not throw an exception, and I just see "Abort".

How can I catch this exception?

+3
source share
1 answer

Short answer: you cannot

.
, , dlopen() C. C . , , ++- C ( dlopen()), .

: ?

, . :

/ ( )

+5

All Articles