Select tool is not cleaning up correctly in the ArcEngine VC++ appliication. (ArcGIS 10.0 and Visual Studio 2008).
上次发布: August 25, 2014ArcGIS Engine
漏洞 ID 编号
NIM060932
已提交
September 7, 2010
上次修改时间
June 5, 2024
适用范围
ArcGIS Engine
找到的版本
10.1
编程语言
VC++
操作系统
Windows OS
操作系统版本
7
修正版本
10.1
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
The workaround is to only create the tool once and then switch between tools with the button clicks rather than creating an instance each time the button is clicked. PageLayoutClearCurrentTool(); if(m_pControlsCircleTool == NULL) { HRESULT hr =m_pControlsCurrentTool.CreateInstance(CLSID_ControlsNewRectangleTool); ASSERT(m_pControlsCurrentTool != NULL); m_pControlsCircleTool = m_pControlsCurrentTool; } else { m_pControlsCurrentTool = m_pControlsCircleTool; } PageLayoutSetCurrentTool();