Catching run time errors from unmanaged code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manish Soni

    Catching run time errors from unmanaged code

    My C# code invokes some unamanged code. My goal is to somehow catch any time
    error in the unmanaged code. I want to capture that a show a user friendly
    exception to the end user.

    -- Manish


  • Michael C#

    #2
    Re: Catching run time errors from unmanaged code

    Most of the time you return an int value from unmanaged code, then check
    that value from within your managed code. Usually a zero indicates no
    errors/successful completion of unmanaged code; other values can indicate
    various error conditions you wish to trap.

    "Manish Soni" <msoni@microsof t.com> wrote in message
    news:%23Y4j26eY FHA.2572@TK2MSF TNGP14.phx.gbl. ..[color=blue]
    > My C# code invokes some unamanged code. My goal is to somehow catch any
    > time error in the unmanaged code. I want to capture that a show a user
    > friendly exception to the end user.
    >
    > -- Manish
    >[/color]


    Comment

    Working...