Ignore:
Timestamp:
11/29/08 11:41:38 (6 years ago)
Author:
lowjoel
Message:

Create the Client and Library instances before the Console class is given control.

File:
1 edited

Legend:

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

    r625 r631  
    7878                CommandLineProgram program = new CommandLineProgram(commandLine); 
    7979                isQuiet = program.Arguments.Quiet; 
    80                 program.Run(); 
     80 
     81                using (ManagerLibrary library = new ManagerLibrary(new Settings())) 
     82                using (Program.eraserClient = new RemoteExecutorClient()) 
     83                { 
     84                    eraserClient.Run(); 
     85                    program.Run(); 
     86                } 
    8187            } 
    8288            catch (Exception e) 
     
    96102                    Console.ReadLine(); 
    97103                } 
     104 
     105                KernelAPI.FreeConsole(); 
    98106            } 
    99107        } 
     
    508516        { 
    509517            //Call the function handling the current command line. 
    510             using (ManagerLibrary library = new ManagerLibrary(new Settings())) 
    511             using (Program.eraserClient = new RemoteExecutorClient()) 
    512                 actionHandlers[Arguments.Action](); 
     518            actionHandlers[Arguments.Action](); 
    513519        } 
    514520 
Note: See TracChangeset for help on using the changeset viewer.