I am running into a strange error and I am not sure where to look for the problem. I am debugging in Visual Studio 2010 Ultimate and installed the Boost libraries via the BoostPro installer for Boost 1.51.
In main.cc under Source Files in the OpenNERO project (which is set as start up) I am getting a crash on the line:
if( !FileExists( "TokenFile" ) )
I tried to follow the execution down and found :
return fs::exists(fs::path(filePathName));
This is a call to the Boost filesystem::path function. The file system library is one of the pre-built ones that the BoostPro installer provides. This call winds up here in path.hpp:
path(Source const& source,
typename boost::enable_if<path_traits::is_pathable<
typename boost::decay<Source>::type> >::type* =0)
path_traits::dispatch(source, m_pathname, codecvt());
This leads to path_traits.hpp and this code:
template <class U> inline
void dispatch(const std::string& c, U& to, const codecvt_type& cvt)
convert(&*c.begin(), &*c.begin() + c.size(), to, cvt);
This line results in an error in the part "&*c.begin() + c.size()". The error occurs in new.cpp inside of the call here:
while ((p = malloc(size)) == 0)
The specific execution path dips into boost_filesystem-vc100-mt-1_51.dll so I can't figure out what is going on. The variable size has a value of 12252796 when the error breakpoint occurs.
This all seems to me like something has messed up with the setup of this project on my system.