Do we really need to catch exception for P/Invoke methods?

Posted by Ram on Stack Overflow See other posts from Stack Overflow or by Ram
Published on 2010-04-14T06:48:17Z Indexed on 2010/04/14 6:53 UTC
Read the original article Hit count: 215

I am using P/Invoke methods in my .NET application. As the functions are C++ functions; each one has return type like int, intptr or any struct. The return type is enough to tell me if the function was successful or not. Do I still need to catch generic or COM exception in this case?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about exception