You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my debugging, when func1 is called before func2, function from library_two is called twice.
But, when func2 is called before func1, function from library_two is only called once, then function from library_one is called, so no double calling of function from 1st imported library.
Is this behaviour expected ?
I aware this is info is a limited, not enough for repro but I can elaborate later on, giving actual info about the content if shared libraries.
The text was updated successfully, but these errors were encountered:
The behaviour doesn't sound expected, but at the same time this likely doesn't have anything to do with the implementation of libloading and more so with the specifics of your dynamic libraries and/or their interaction with the interpreter/loader that is used on your system.
It turns out they both had an inner functions (which is the main body) to which they make a call. This inner function has the same name on both shared libraries and exported.
What is the expected behaviour when we important a function with the same name from two different shared libraries.
In coding, this translates to:
In my debugging, when
func1
is called beforefunc2
, function fromlibrary_two
is called twice.But, when
func2
is called beforefunc1
, function fromlibrary_two
is only called once, then function fromlibrary_one
is called, so no double calling of function from 1st imported library.Is this behaviour expected ?
I aware this is info is a limited, not enough for repro but I can elaborate later on, giving actual info about the content if shared libraries.
The text was updated successfully, but these errors were encountered: