I have an issue with .NET managed exceptions when working with Cef Glue on my Linux system (Debian 9.0) with mono. I have changed some code to make Cef Glue GTK# Demo work. Unfortunatelly, I use some old CEF releases (the latest that could work for me is 3359). Everything works fine, but since CefRuntime.Initialize() returns 1, any casual NullReferenceException (in any thread) leads my application to failure. This means, I cannot handle the following exception:
- Code: Select all
try
{
object o = null;
o.ToString();
}
catch (Exception e)
{
Console.WriteLine(e.Message); // this output will not be written
}
Instead, my program will abort with Segmentation fault evaluating "o.ToString()".
This is my environment:
Debian 9.0
Mono 6.4.0.198 (also tried on 4.8.1)
CefGlue from tag 3359 (also tried 3029 and 3163)
Do you have any ideas, why such behavior is possible?