-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type_id is not consistent across modules (executable and dynamic library). #80
Comments
Also far as I know during dynamic linking, it should resolve static variables to have the same address, if all shared libraries are loaded in the correct order. I don't really know how it works on Windows, but I'd expect something similar. I never analysed what happened when trying to load a dynamic library through A actually asked the question recently on code review, and it seemed ok: https://codereview.stackexchange.com/q/209950/118376 The |
Can you try this test project? https:/gracicot/kgr-shared-test I added a simple test that compares the type id inside a shared library and an executable. On my setup both ids are true and singles are working as expected. |
This is fixed by #97. All type IDs are simply generated hashes from the type name. |
I am questionning the following implementation of type_id:
I think the assumption is wrong. A static variable is not global to the whole program, but just the whole module. I am expecting the
type_id
value inside two different DLL both using kangaru will not have the same value.Since
type_id
is a private class, I do not imagine any situation where people will transferttype_id
accross DLL. So it looks to be a minor bug for now.The text was updated successfully, but these errors were encountered: