Fix Failed to launch on exception happend when unhandled exception
handler failed to set.
Make catch a exception on failed but it goes to launching normally.
If unhandled exception handler is not set, unhandled exception is not
print out to dlog but print into journal log.
Change-Id: I3679470a2fa8d750cfbb1f47fc705dcf3a69e53b
var addMethod = unhandledException.GetAddMethod(true);
addMethod.Invoke(appdomain, new[] {handler});
+ }
+ catch (Exception e)
+ {
+ ALog.Debug("Exception on set handler for unhandled exception");
+ PrintException(e);
+ }
+
+ try
+ {
CurrentAssemblyLoaderContext = new AssemblyLoader();
if (!string.IsNullOrEmpty(preloadDirectory))