Hello,
I am getting a crash in my application when reading from a binary archive created using boost serialization. From a small test application, with identical code, I can read this archive fine. But when I put the same code into into my main application,
I get the crash shown in the stack below. Since I am not getting a crash for a simple test application, I am unable to provide a simple code example to the crash. I would appreciate any hints on why this can happen. As far as I understand, the compiler options are the same. Could this be due to a difference in MS RT libs linked to? Any debugging ideas welcome. I am using Visual Studio 8, and the application uses wxWidgets and OpenGL.
Thanks
Mahesh
> msvcr80d.dll!memcpy(unsigned char * dst=0xcdcdcdcd, unsigned char * src=0x0012fb78, unsigned long count=1) Line 350 Asm
msvcr80d.dll!memcpy_s(void * dst=0xcdcdcdcd, unsigned int sizeInBytes=3452816845, const void * src=0x0012fb78, unsigned int count=1) Line 67 + 0x11 bytes C
msvcp80d.dll!std::char_traits<char>::_Copy_s(char * _First1=0xcdcdcdcd, unsigned int _Size_in_bytes=3452816845, const char * _First2=0x0012fb78, unsigned int _Count=1) Line 575 + 0x16 bytes C++
msvcp80d.dll!std::_Traits_helper::copy_s<std::char_traits<char> >(char * _First1=0xcdcdcdcd, unsigned int _Size=3452816845, const char * _First2=0x0012fb78, unsigned int _Count=1, std::_Secure_char_traits_tag __formal={...}) Line 707 + 0x15 bytes C++
msvcp80d.dll!std::_Traits_helper::copy_s<std::char_traits<char> >(char * _First1=0xcdcdcdcd, unsigned int _Size=3452816845, const char * _First2=0x0012fb78, unsigned int _Count=1) Line 699 + 0x21 bytes C++
msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> >::assign(const std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> > & _Right="*", unsigned int _Roff=0, unsigned int _Count=4294967295) Line 1021 + 0x25 bytes C++
msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> >::assign(const std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> > & _Right="*") Line 1006 C++
msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> >::operator=(const std::basic_string<char,std::char_traits<char>,std::_DebugHeapAllocator<char> > & _Right="*") Line 888 C++
msvcp80d.dll!std::_DebugHeapString::operator=(const std::_DebugHeapString & __that={...}) + 0x13 bytes C++
evviewn.exe!std::locale::locale<boost::archive::codecvt_null<char> >(const std::locale & _Loc={...}, const boost::archive::codecvt_null<char> * _Facptr=0x028c7178) Line 301 + 0x33 bytes C++
evviewn.exe!boost::archive::add_facet<boost::archive::codecvt_null<char> >(const std::locale & l={...}, boost::archive::codecvt_null<char> * f=0x028c7178) Line 46 + 0x2a bytes C++
evviewn.exe!boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive,char,std::char_traits<char> >::basic_binary_iprimitive<boost::archive::binary_iarchive,char,std::char_traits<char> >(std::basic_streambuf<char,std::char_traits<char> > & sb={...}, bool no_codecvt=false) Line 146 + 0x48 bytes C++
evviewn.exe!boost::archive::binary_iarchive_impl<boost::archive::binary_iarchive,char,std::char_traits<char> >::binary_iarchive_impl<boost::archive::binary_iarchive,char,std::char_traits<char> >(std::basic_istream<char,std::char_traits<char> > & is={...}, unsigned int flags=0) Line 79 + 0x4d bytes C++
evviewn.exe!boost::archive::binary_iarchive::binary_iarchive(std::basic_istream<char,std::char_traits<char> > & is={...}, unsigned int flags=0) Line 40 + 0x17 bytes C++
evviewn.exe!File4dv::read
(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & filename="test.4dv") Line 53 + 0x11 bytes C++