Changeset 1716


Ignore:
Timestamp:
1/28/2010 8:16:47 AM (4 years ago)
Author:
lowjoel
Message:

Catch IOExceptions when we try to connect to other running instances and show a error message when one occurs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/Program.cs

    r1675 r1716  
    418418                        MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 
    419419                        S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0); 
     420                } 
     421                catch (IOException ex) 
     422                { 
     423                    MessageBox.Show(S._("Another instance of Eraser is already running but " + 
     424                        "cannot be connected to.\n\nThe error returned was: {0}", ex.Message, 
     425                        S._("Eraser"), MessageBoxButtons.OK, MessageBoxIcon.Error, 
     426                        MessageBoxDefaultButton.Button1, 
     427                        S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0)); 
    420428                } 
    421429                catch (TimeoutException) 
Note: See TracChangeset for help on using the changeset viewer.