laptop and a wrench

Bogue

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

Dernière publication: August 19, 2020 No Product Found
Numéro d’ID de bogue NIM033706
EnvoiMarch 28, 2008
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeC#
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM033706

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement