echopurple 发表于 2007-5-12 16:48:19

数组越界与版本问题

请问高手~
程序在4.0的版本可以运行没有问题
但是一换到6.5就运行不了,提示说数组越界,想请教高手这是什么原因?
在6.5下选用release格式也可以使程序正常运行,换到debug就不可以~
程序本身在4.0版本里已经是很成熟的程序,所以我想可能不会是程序自身存在什么大问题。
如果在6.5的debug格式下按照提示一个一个去改数组下标的话工作量太大,不太可行。
谢谢啦~

hillyuan 发表于 2007-5-13 22:36:27

There ARE some problems in your program. In release format, exe file do no check access error in order to speed up calculation. But in debug, generally it do it( you can turn off this function by yourself, of course)

I don't know the difference of your version 4.0 and 6.5 (VF?). But generally, new version provide more deguging function. I think it is maybe the reason of your problem.

echopurple 发表于 2007-5-14 09:46:08

回复 #2 hillyuan 的帖子

thanks ~
i've found the problem and solve it~
it is true that some arraies exceed the bounds. so i check and correct them .
the two versions are respectively 4.0 and cvf6.5
thank u for ur illustration of the differences between debug mode and release mode~

galever 发表于 2007-5-14 11:16:27

在PROJECT属性设置中的RUNTIME CHECK中取消越界检查。
页: [1]
查看完整版本: 数组越界与版本问题