我在启动包含boost库
的CLR应用程序时得到了Debug Assertion Failed message _CrtIsValidHeapPointer(pUserData)
#include "boost/date_time/gregorian/gregorian.hpp"
项目编译为usig /CLR
密钥。
我没有在这个项目中添加任何代码行,除了包括:
#include "stdafx.h"
#include "Form1.h"
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/foreach.hpp>
#include "boost/date_time/gregorian/gregorian.hpp"
using namespace win_clr;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Application::Run(gcnew Form1());
return 0;
}
如何解决这个问题?