Author: stippi Date: Wed Mar 3 10:07:06 2010 New Revision: 273 URL: http://mmlr.dyndns.org/changeset/273 Log: Wrap main thread in try-catch-block, in order to get a stack trace next time we hit that recursive init exception. Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Tue Mar 2 21:26:45 2010 (r272) +++ webkit/trunk/WebKit/haiku/WebPositive/BrowserApp.cpp Wed Mar 3 10:07:06 2010 (r273) @@ -43,6 +43,7 @@ #include <FindDirectory.h> #include <Path.h> #include <Screen.h> +#include <debugger.h> #include <stdio.h> @@ -329,9 +330,13 @@ int main(int, char**) { - new BrowserApp(); - be_app->Run(); - delete be_app; + try { + new BrowserApp(); + be_app->Run(); + delete be_app; + } catch (...) { + debugger("Exception caught."); + } return 0; }