laptop and a wrench

Erro

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

Última Publicação: August 19, 2020 No Product Found
Número de ID do Erro NIM033706
EnviadoMarch 28, 2008
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.2
Idioma do programaC#
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM033706

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download