BinaryFormatter.Deserialize() method does not work in an AutoCAD plugin
-
26-10-2019 - |
Pergunta
When I call the Deserialize
method on an instance of System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
in IExtensionApplication.Initialize
of an AutoCAD plugin, the next code line after that does not execute. What could be causing this? Thanks in advance for any help.
Solução
You need to show some code, but in all likely hood the Deserialize
call is throwing an exception and therefore the next line of code is not being executed. Use a try/catch block around the Deserialize
to see if you can catch an exception and view/log the exception details that might point you to the root of the problem.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow