Dll Memory Management
https://stackoverflow.com/questions/4031249/dll-memory-management
when a DLL is loaded, Windows allocates address space for the code and data segements, and calls
DllMain()
. The C++ compiler will have arranged to call global ctors from
DllMain()
.
Passing reference to STL vector over dll boundary
https://stackoverflow.com/questions/17885060/passing-reference-to-stl-vector-over-dll-boundary
passing C++ types across DLL boundaries is difficult. You need the following
- Same compiler
- Same standard library
- Same settings for exceptions
- In Visual C++ you need same version of the compiler
- In Visual C++ you need same Debug/Release configuration
- In Visual C++ you need same Iterator debug level