Error trapping

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi,

I have an application in c# that calls a dll function written in
Fortran. If something goes wrong in the dll, such as division by
zero, it immediately returns to the calling code but I can't seem to
find a way to test whether the dll has dropped out early by using
try...catch. I have heard that there is a system word in the kernel
that can be analysed which indicates the success or failure of a call
to unmanaged code, but haven't found anything on it yet.

Any ideas?

Thanks
 
(e-mail address removed) (Paul) wrote in
I have heard that there is a system word in the kernel
that can be analysed which indicates the success or failure of a call
to unmanaged code, but haven't found anything on it yet.

Hmmm a guess here, but try looking at Marshal.GetLastWin32Error().

-mdb
 
Back
Top