diff options
author | Dan Gudmundsson <[email protected]> | 2014-02-04 09:10:07 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-02-04 09:10:07 +0100 |
commit | 115e23b02caae4e8ccdb6f9ea3422bfd1b2e4abd (patch) | |
tree | 1cc2244acf59e19230ceab843cbcc51b0ed1e457 /lib/observer/src | |
parent | 846c74cd36ff3cf3bc576bc0512f5a1502f3fab4 (diff) | |
download | otp-115e23b02caae4e8ccdb6f9ea3422bfd1b2e4abd.tar.gz otp-115e23b02caae4e8ccdb6f9ea3422bfd1b2e4abd.tar.bz2 otp-115e23b02caae4e8ccdb6f9ea3422bfd1b2e4abd.zip |
observer: Fix observer crash when closing crashdumpviewer
Do not saw the branch you are sitting on...
Spawn cdv so that cdv get its own wx environment.
Diffstat (limited to 'lib/observer/src')
-rw-r--r-- | lib/observer/src/observer_wx.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl index 4c385b76aa..ecb8e132fe 100644 --- a/lib/observer/src/observer_wx.erl +++ b/lib/observer/src/observer_wx.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2011-2013. All Rights Reserved. +%% Copyright Ericsson AB 2011-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -214,7 +214,7 @@ handle_event(#wx{event = #wxClose{}}, State) -> {stop, normal, State}; handle_event(#wx{id = ?ID_CDV, event = #wxCommand{type = command_menu_selected}}, State) -> - crashdump_viewer:start(), + spawn(crashdump_viewer, start, []), {noreply, State}; handle_event(#wx{id = ?wxID_EXIT, event = #wxCommand{type = command_menu_selected}}, State) -> |