I am using DLLImport to call the GhostScript library from a C # application.
So I have code like this
[DllImport("gsdll32.dll", EntryPoint = "gsapi_init_with_args")] private static extern int gsapi_init_with_args(IntPtr instance, int argc, IntPtr argv); try { intReturn = gsapi_init_with_args(intGSInstanceHandle, intElementCount, intptrArgs); } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); }
I'm going to see the source code for GhostScript that is written in C or C ++, but overall I was wondering what would happen if the GhostScript code threw an unhandled exception? Would it be a catch caught there, or would it look like this:
catch {
source share