debugger exception notification
  project project1.exe raised exception class econvererror with message'' 屏' is not a valid integer value'. process stopped. use step or run to continue.然后程序就停在一行指令上面了,看意思是那一行通不过测试,可是我不用单步调试直接编译可以通过并且正常运行啊?! 只是有时候处理的数据量大的时候才会出错,为什么单步执行却根本通不过呢?

解决方案 »

  1.   

    可是我的程序里面没有屏这个字啊,出错后停在下面一if (pos('.bmp',j[y-1])>0) and isnumber(copy(j[y-1],length(j[y-1])-5,2)) then begin
      

  2.   

    应该是isnumber函数或Y数组里的字符出错'
    要不就是你说的上一行有错误,
      

  3.   

    看copy的返回类型:    function Copy(S; Index, Count: Integer): string;
        function Copy(S; Index, Count: Integer): array;   copy(j[y-1],length(j[y-1])-5,2)复制两个字符? 肯定有问题了,估计你复制出来的两个字符为:Char($C6)+Char($C1)("屏":$C6 (198), $C1(193))).