laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 19, 2020 No Product Found
Bug-ID-Nummer NIM033706
EingereichtMarch 28, 2008
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
ProgrammspracheC#
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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);

Schritte zur Reproduzierung

Bug-ID: NIM033706

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