Static objects don't get initialized when Imebra is built as a library
Issue #89
resolved
Some static objects are needed to initialize the library correctly.
When Imebra is built as a static or dynamic library then the static objects don't get initialized and as a consequence the codecs don't get registered,
Comments (4)
-
Account Deleted -
reporter - changed status to resolved
- Fixes
#89(Static objects don't get initialized when Imebra is built as a library)
→ <<cset b67f3844dd093fb6de68e196f702594af6d0a84e>>
-
reporter - changed milestone to next_version
-
reporter - changed milestone to 2013-05-21_12-07-46
- Log in to comment
When using imebra as a library in my library project everything works fine. But when I try to use my library who depends on imebra into a third project, I get the global member initializetion problem.
The simple fact to invoque the dicomCodec class name elsewhere in the code make it's global member to initialize properly. I added this code before loading my images and now I can see the code getting executed :
codecs::dicomCodec* pTmp = new codecs::dicomCodec(); delete pTmp;