anchor.diff:      ref_add(?ANALYZE, AnalyzeButton),
       wxSizer:replace(AnalStopSizer, AnalyzeGauge, AnalyzeButton),
       wxWindow:destroy(AnalyzeGauge),
  -    receive
  -        analysis_stopped ->
  -            wxMenuItem:enable(ref_lookup(?STOP_MENU_ITEM)),
  -            StopGauge = ref_lookup(?STOP_GAUGE),
  -            stop_pulsing(StopGauge),
  -            StopButton = wxButton:new(Parent, ?STOP, [{label, "&Stop"}]),
  -            ref_add(?STOP, StopButton),
  -            wxSizer:replace(AnalStopSizer, StopGauge, StopButton),
  -            wxWindow:destroy(StopGauge)
  -    after 0 -> ok
  +    wxMenuItem:enable(ref_lookup(?STOP_MENU_ITEM)),
  +    try
  +        StopGauge = ref_lookup(?STOP_GAUGE),
  +        stop_pulsing(StopGauge),
  +        StopButton = wxButton:new(Parent, ?STOP, [{label, "&Stop"}]),
  +        ref_add(?STOP, StopButton),
  +        wxSizer:replace(AnalStopSizer, StopGauge, StopButton),
  +        wxWindow:destroy(StopGauge)
  +    catch
  +        error:badarg -> continue
       end,
       wxSizer:layout(AnalStopSizer).
   
  
positive.code: 
  %% Analyze selected function.
  analyze() ->
      register(?RP_GUI_ANALYSIS, self()),
      Module = getModule(),
      {Function, Arity} = getFunction(),
      ModuleList = ref_lookup(?MODULE_LIST),
  
negative.code: 		    end
  	    end;
         true -> continue            
      end.
  
  analyze_aux(Module, Function, Args, Files) ->
      analysis_init(),
  