I've run in a serious problem while I tried to pass an std::map from one DLL to another as a reference.
Let's call them DLL1 and DLL2.
DLL1 is calling function func( (std::map*)& map_in ) from DLL2, passing to the function an std::map as reference
func( map_in );
When the finction from DLL2 tries to iterate through the received map values, comes an "Access violation"!
Apparently, there are two static members in the _Tr member (type _Tree): _Nil es _Nilref, and these are different in the two DLL-s... ?
Any ideas? Is this a known problem?