Читаемое сообщение об исключении C ++ \ CLI в C #?

следующий код генерирует исключение в C ++ и перехватывает в C # C++

 throw std::exception ("a C++ exception");

When i catch in C#, it gives me the following:

[SEHException (0x80004005): External component has thrown an exception.]

here is how i call the C++ code

using Foo.Bar.Sample; //C++ library

....

Class1 class1 = new Class1(); //C++ class
class1.throwAnException();

Just wondering how can i get the "a C++ exception" in C#

6
задан Deduplicator 10 March 2015 в 18:18
поделиться