laptop and a wrench

Bug

When the 'Open MXD' button is used in the EngineControls sample(to switch from MXD with a custom layer to a blank MXD), the custom layer is not being unloaded properly.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM012188
EingereichtOctober 5, 2007
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
ProgrammspracheVC++
Behoben in Version9.3
StatusFixed

Workaround

Need to clear the ActiveView when the OnPageLayoutReplaced event is calledHere are the code changes for a workaround. In the file EngineControlsDlg.cpp - HRESULT CEngineControlsDlg::OnPageLayoutReplaced(VARIANT newMap){ if(m_ipPageLayout) { m_ipPageLayout ->Clear(); } m_ipPageLayoutControl->get_ActiveView(&m_ipPageLayout); // Get the IActiveView of the focus map in the PageLayoutControl IActiveViewPtr ipActiveView; m_ipPageLayoutControl->get_ActiveView(&ipActiveView); In the file EngineControlsDlg.h – // The Controls IToolbarControlPtr m_ipToolbarControl; IToolbarControlPtr m_ipMapToolbarCtrl; ITOCControlPtr m_ipTOCControl; IMapControl3Ptr m_ipMapControl; IPageLayoutControl2Ptr m_ipPageLayoutControl; IActiveViewPtr m_ipPageLayout;

Schritte zur Reproduzierung

Bug-ID: NIM012188

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln