Debug assertion: __acrt_first_block == header
I'm assuming it has something to do with std::string being allocated by dll and deallocated by application but I'm not sure. Also I got no idea on how to fix it.
@Thomas1965 Wow thank you very much that did the trick.
Although there're still some issues. For example if I want to use ResultSet::getString(..) I'll probably still get the error. How would I go about fixing that?
It says "Debug assertion failed" with __acrt_first_block == header. Breakpoint is at the end of void _Deallocate(void * _Ptr, size_t _Count, size_t _Sz); function in xmemory0 where it calls ::operatordelete(_Ptr);
It says "Debug assertion failed" with __acrt_first_block == header. Breakpoint is at the end of void _Deallocate(void * _Ptr, size_t _Count, size_t _Sz); function in xmemory0 where it calls ::operator delete(_Ptr);
Sorry I was not clear enough. I ment the msg in e.what(). Could you maybe post some code between the try and catch block? My guess is that there is some error before which actually leads to the exception thrown.
Oh database connection was failing so that was the reason of exception. Overall library works as expected it's just std::string related functions. They work but crash at deallocation.