[odb-users] WTL + ODB / or maybe auto_ptr Exception: Invalid Address specified to RtlValidateHeap

Boris Kolpackov boris at codesynthesis.com
Thu Mar 29 10:05:15 EDT 2012

Hi Wayne,

Wayne Hackle <hacklew at hotmail.com> writes:

> > Can you send me a test project so that I could try to reproduce and
> > debug the problem? You can send it off-list.
> Here you go.

Thanks for the test project. I took a look and the problem appears to
be due to different runtimes used by the ODB DLLs and your project. ODB
uses Multi-threaded DLL (which is the default) while your project uses
Multi-threaded static. If I change your project to use the DLL runtime,
everything works fine. To do this. go to Project->Properties-> C/C++->
Code Generation->Runtime Library and change "Multi-threaded Debug (/MTd)"
to "Multi-threaded Debug DLL (/MDd)". Do the same for Release but use
"Multi-threaded DLL (/MD)".


More information about the odb-users mailing list