在debug模式下运行自己写的exe,结束后output窗口会出现10多行:
A first chance exception of type 'System.NullReferenceException' occurred in others.dll谁知道这是什么意思?
是不是others.dll有问题?

解决方案 »

  1.   

    不是由于错误退出的。那个dll是关闭以后在output窗口看到的那些信息。
    那个dll对托管内存和非托管内存交换操作,难道与此有关?
      

  2.   

    信息太少,要是能提供更多信息就好了。A first chance exception of type  'System.NullReferenceException ' occurred in others.dll
    这个错误的含义是,在 others.dll 中出现了未处理的 System.NullReferenceException 错误。这个错误是在类似 “a.DoSomething() // a is null” 的错误中出现的,检查一下你的代码。