Search code examples
delphi

Delphi Runtime Error 105 at 0040423F


I currently have a question for Delphi.Every time when i want to run the program it shows me this problem:Runtime error 105 at 0040423F. Here is the picture of it and the program behind it:

ERROR PICTURE


Solution

  • Edit your source code to add the line shown below:

    program sss;
    
    {$APPTYPE CONSOLE}
       [etc]
      readln()  // <- the program will pause here until you press the Return key
    end.
    

    The error you were getting was to tell you your program was being denied access to the standard output stream, which is where the output from a writeln() statement is written, because it isn't open for output.