使用产品 iobjectscpp 10.1.1,操作系统 win10 64 编译器 MSVC 2017 64位,IDE Qt5.9.6
问题描述:打开sample中的GettingStarted进行标绘时,出现Microsoft Visual C++ Runtime Library,
File:minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line:996
Expression:_pFirstBlock==pHead.
定位到代码行:
m_pUGGraphicObject->SetGeometryShape(libID, nID, pts3D, true);//出错行
该示例在Linux下运行正常,请问在Windows下需要有什么特别注意的吗?下面为pro中的设置。
win32{
QMAKE_CXXFLAGS= -Zc:wchar_t -MDd
# QMAKE_CXXFLAGS_RELEASE = -Od -MD -Zi
QMAKE_LFLAGS_RELEASE = -DEBUG
QMAKE_RPATHDIR += "../debug/x64"
DESTDIR = "../debug/x64"
QMAKE_CXXFLAGS += /bigobj
详细错误:
000002535E581442 (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000002535E5803EC)
000002535E5803EC (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000002535E576411)
000002535E576411 (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000002535E536FE8)
000002535E536FE8 (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000002535E53112B)
000002535E53112B (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000002535EA12D8C)
000002535EA12D8C (SuGeometryPlotd): (filename not available): OGDC::OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>::~OgdcArray<OGDC::OgdcArray<OGDC::OgdcPoint2D> * __ptr64>
我在网上搜这个情况,一般是由于编译未设置MDd选项原因,但是这里也设置了,不知道为啥。