Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
5056ba6d
Commit
5056ba6d
authored
5 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
remove unused exception handler
parent
675842a2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llappviewermacosx.cpp
+0
-19
0 additions, 19 deletions
indra/newview/llappviewermacosx.cpp
with
0 additions
and
19 deletions
indra/newview/llappviewermacosx.cpp
+
0
−
19
View file @
5056ba6d
...
...
@@ -68,25 +68,9 @@ namespace
int
gArgC
;
char
**
gArgV
;
LLAppViewerMacOSX
*
gViewerAppPtr
=
NULL
;
void
(
*
gOldTerminateHandler
)()
=
NULL
;
std
::
string
gHandleSLURL
;
}
static
void
exceptionTerminateHandler
()
{
// reinstall default terminate() handler in case we re-terminate.
if
(
gOldTerminateHandler
)
std
::
set_terminate
(
gOldTerminateHandler
);
// treat this like a regular viewer crash, with nice stacktrace etc.
long
*
null_ptr
;
null_ptr
=
0
;
*
null_ptr
=
0xDEADBEEF
;
//Force an exception that will trigger breakpad.
LLAppViewer
::
handleViewerCrash
();
// we've probably been killed-off before now, but...
gOldTerminateHandler
();
// call old terminate() handler
}
void
constructViewer
()
{
// Set the working dir to <bundle>/Contents/Resources
...
...
@@ -99,9 +83,6 @@ void constructViewer()
gViewerAppPtr
=
new
LLAppViewerMacOSX
();
// install unexpected exception handler
//gOldTerminateHandler = std::set_terminate(exceptionTerminateHandler);
gViewerAppPtr
->
setErrorHandler
(
LLAppViewer
::
handleViewerCrash
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment