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:
parent
572a465779
commit
e25584f3c5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user