laptop and a wrench

漏洞

When items are dragged and dropped into a listbox hosted in a .NET Windows application, INameFactory.UnpackageNames() throws an error.

上次发布: August 19, 2020 No Product Found
漏洞 ID 编号 NIM033706
已提交March 28, 2008
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
编程语言C#
状态Will Not Be Addressed

附加信息

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

解决办法

INameFactory.UnpackageNames expects a SafeArray – the closest thing to it in C# is byte array, not MemoryStream itself. Try the following:<a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream memStream = (<a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream)e.Data.GetData(<a href="http://myFormat.Name" target="_blank">myFormat.Name</a>); object varBytes = memStream.ToArray(); INameFactory pNameFactory = new NameFactoryClass(); IEnumName pEnumNames = pNameFactory.UnpackageNames(ref varBytes);

重现步骤

漏洞 ID: NIM033706

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项