I'm trying to run an out of the box ActiveMQ example http://activemq.apache.org/cms/example.html on Windows with VS 2008 in a 32-bit C++ Console application.
The project is built but when I run the program, I get the exception.
Unhandled exception at 0x768b3e28 in XXXXXX.exe: Microsoft C++ exception: std::length_error at memory location 0x0100f880..
I get exactly the same exception with same memory addresses when trying to run a separate project and with another 3rd party DLL (log4CXX).
Path Settings
The DLL file is in Windows/System32 as well as in Windows/SysWOW64.
I've the header file path added to Configuration Properties > C/C++ > Additional Include Directories. In linker > Input > Additional Dependencies, I've ws2_32.lib libapr-1.lib activemq-cpp.lib. In linker > General > Additional Library Directories, I've specified the path to folders where lib files are present. The path to the lib and header files are included and I believe that's why there's no issue in building the project.