Hey,
I'm using C# to consume a C library using the following syntax:
[DllImport("clib.so")
static extern int func(char* foo);
I'd like to know if there's any way to catch an exit(#) that happens in the C code so I can reload the library if a critical error ever happens.
Thanks!