Wrap main thread in try-catch-block, in order to get a stack trace next time

we hit that recursive init exception.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@273 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-03-03 10:07:06 +00:00 committed by Alexandre Deckner
parent 572a465779
commit e25584f3c5
1 changed files with 8 additions and 3 deletions

View File

@ -43,6 +43,7 @@
#include <FindDirectory.h>
#include <Path.h>
#include <Screen.h>
#include <debugger.h>
#include <stdio.h>
@ -329,9 +330,13 @@ BrowserApp::_CreateNewTab(BrowserWindow* window, const BString& url,
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;
}