User Tools

Site Tools


codesamples:exception_handling_program_startup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
codesamples:exception_handling_program_startup [2024/09/16 05:14] wolfgangriedmanncodesamples:exception_handling_program_startup [2024/09/16 09:06] (current) wolfgangriedmann
Line 7: Line 7:
 class XStartupCode class XStartupCode
 [STAThreadAttribute]; [STAThreadAttribute];
-static method Start as void+static method Start() as void strict
   local oSB as System.Text.StringBuilder   local oSB as System.Text.StringBuilder
  
   try   try
  
-  Functions.Start()+  StartupExceptionTester.Exe.Functions.Start()
  
   catch oEx as Exception   catch oEx as Exception
Line 29: Line 29:
   Output( oSB, "===================================" )   Output( oSB, "===================================" )
   Output( oSB, "Press Return to close the application" )   Output( oSB, "Press Return to close the application" )
-  Wait()+  Console.ReadLine()
   MessageBox( 0, oSB:ToString(), "Runtime error", 0 )   MessageBox( 0, oSB:ToString(), "Runtime error", 0 )
   System.IO.File.AppendAllText( System.IO.Path.Combine( AppDomain.CurrentDomain:BaseDirectory, "ApplicationError.log" ), oSB:ToString() )   System.IO.File.AppendAllText( System.IO.Path.Combine( AppDomain.CurrentDomain:BaseDirectory, "ApplicationError.log" ), oSB:ToString() )
Line 40: Line 40:
   oSB:AppendLine( cText )   oSB:AppendLine( cText )
   Console.WriteLine( cText )   Console.WriteLine( cText )
- 
-  return 
- 
-static method Wait() as void 
- 
-  Console.ReadLine() 
  
   return   return
codesamples/exception_handling_program_startup.1726463677.txt.gz · Last modified: 2024/09/16 05:14 by wolfgangriedmann