Re: Crash in _Orphan_ptr
"Eddy" <Eddy@discussions.microsoft.com> wrote in message
news:FA06DBEF-D3CF-4271-AEFE-37B1A8C8F19C@microsoft.com
I have application in Visual Studio 2005 whose calls several DLLs.
I have a std::list created in the main application,
the same list is filled in a DLL where, as parameter, I send the
pointer of the list.
The crash occures when the main application tries to clear the list
I've noticed that the function _Orphan_ptr resides in
_HAS_ITERATOR_DEBUGGING #ifdef-#endif secotr, so I've tested the
application without _HAS_ITERATOR_DEBUGGING and I have ITERATOR
errors when I try to add elements into the list.
Make sure the EXE and all the DLLs are compiled with the exact same STL
settings, like _HAS_ITERATOR_DEBUGGING or _SECURE_SCL, as well as the
same flavor of CRT DLL (that is, all with /MD or all with /MDd).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925