Delphi运行时错误105在0040423F

时间:2015-11-20 21:26:43

标签: delphi

我目前有一个关于Delphi的问题。每当我想运行该程序时它会向我显示此问题:运行时错误105 0040423F。以下是它的图片及其背后的程序:

ERROR PICTURE

1 个答案:

答案 0 :(得分:4)

编辑源代码以添加如下所示的行:

program sss;

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

您得到的错误是告诉您程序被拒绝访问标准输出流,这是写入writeln()语句的输出,因为它不打开输出。