Using the deprecated interface and method IExportDialog::DoModal crashes ArcMap. Older code that uses this deprecated interface will result in errors when the DoModal method is called.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM006411
已提交
January 26, 2007
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.2
编程语言
VBA
修正版本
9.3
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Use IExportFileDialog instead:Public Sub testExportFileDialog()On Error GoTo EH:Dim efd As IExportFileDialogSet efd = New ExportFileDialogefd.DocumentName = "ExportTest"Dim pixelBounds As IEnvelopeSet pixelBounds = New EnvelopepixelBounds.PutCoords 0, 0, 300, 300Dim b As Booleanb = efd.DoModal(pixelBounds, Nothing, Nothing, 75)MsgBox bExit SubEH:MsgBox Err.Number & vbCrLf & Err.DescriptionEnd Sub