[BF] Anwendung beendete sich nicht nach erfolgtem Checkin
This commit is contained in:
		
							parent
							
								
									33e5675b9e
								
							
						
					
					
						commit
						c5f7243285
					
				@ -14,43 +14,35 @@ namespace svnsync
 | 
				
			|||||||
        /// Der Haupteinstiegspunkt für die Anwendung.
 | 
					        /// Der Haupteinstiegspunkt für die Anwendung.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
      [STAThread]
 | 
					      [STAThread]
 | 
				
			||||||
        static void Main(string[] args)
 | 
					      static void Main(string[] args) {
 | 
				
			||||||
        {
 | 
					        if(!cmd(args)) {
 | 
				
			||||||
            if (!cmd(args))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          return;
 | 
					          return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        ControllersTray t = null;
 | 
					        ControllersTray t = null;
 | 
				
			||||||
            try
 | 
					        try {
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          Svn.getInstance().setDirectory(CmdArgs.getInstance().GetArgumentData("-d"));
 | 
					          Svn.getInstance().setDirectory(CmdArgs.getInstance().GetArgumentData("-d"));
 | 
				
			||||||
          t = new ControllersTray();
 | 
					          t = new ControllersTray();
 | 
				
			||||||
          t.execute();
 | 
					          t.execute();
 | 
				
			||||||
            }
 | 
					        } catch(Exception e) {
 | 
				
			||||||
            catch (Exception e)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          t.hideToolTip();
 | 
					          t.hideToolTip();
 | 
				
			||||||
                string text = e.Message+"\n\n"+e.StackTrace;
 | 
					          string text = e.Message + "\n\n" + e.StackTrace;
 | 
				
			||||||
          string title = "Exception in SVNSync: " + CmdArgs.getInstance().GetArgumentData("-d");
 | 
					          string title = "Exception in SVNSync: " + CmdArgs.getInstance().GetArgumentData("-d");
 | 
				
			||||||
          System.Windows.Forms.MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
					          System.Windows.Forms.MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return;
 | 
					          return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        if(!CmdArgs.getInstance().HasArgumentType("-cron")) {
 | 
				
			||||||
          Application.Run();
 | 
					          Application.Run();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
        /*Application.Run();*/
 | 
					        /*Application.Run();*/
 | 
				
			||||||
        Application.EnableVisualStyles();
 | 
					        Application.EnableVisualStyles();
 | 
				
			||||||
        Application.SetCompatibleTextRenderingDefault(false);
 | 
					        Application.SetCompatibleTextRenderingDefault(false);
 | 
				
			||||||
            try
 | 
					        try {
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          Application.Run(new Form1(args));
 | 
					          Application.Run(new Form1(args));
 | 
				
			||||||
            }
 | 
					        } catch(NotImplementedException e) {
 | 
				
			||||||
            catch (NotImplementedException e)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          System.Windows.Forms.MessageBox.Show("In: " + e.Source + "\n\n" + e.Message, "Fehler!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
					          System.Windows.Forms.MessageBox.Show("In: " + e.Source + "\n\n" + e.Message, "Fehler!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
				
			||||||
            }
 | 
					        } catch(Exception /*e*/) {
 | 
				
			||||||
            catch (Exception /*e*/)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
          //System.Windows.Forms.MessageBox.Show("In: " + e.Source + "\n\n" + e.Message, "Fehler!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
					          //System.Windows.Forms.MessageBox.Show("In: " + e.Source + "\n\n" + e.Message, "Fehler!", MessageBoxButtons.OK, MessageBoxIcon.Error);
 | 
				
			||||||
          Application.Exit();
 | 
					          Application.Exit();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							@ -1,7 +1,7 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
					<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
				
			||||||
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
 | 
					  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
 | 
				
			||||||
    <StartArguments>-d "C:\\Users\\netz\\Documents\\Bastelleien" -cron -autoadd -autodelete</StartArguments>
 | 
					    <StartArguments>-d "E:\Eigene Dateien\Doc%27s\Basteleien" -cron -autoadd -autodelete</StartArguments>
 | 
				
			||||||
    <RemoteDebugEnabled>false</RemoteDebugEnabled>
 | 
					    <RemoteDebugEnabled>false</RemoteDebugEnabled>
 | 
				
			||||||
    <StartAction>Project</StartAction>
 | 
					    <StartAction>Project</StartAction>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user