描述:
程序启动时,出现Runtime error 216 at xxxx之类的错误信息,开始以为是个例,跟踪代码才发现,从第一句就报错,因为之前程序是可以正常运行的,所以问题明显与代码无关,排查确定问题出在DBISAM,测试结果发现,只有一个DBISAM组件,程序也报错,Google后发现无此案例,排查结果与Windows的数据保护视图开启有关,关闭问题解决。Windows中关于DEP的描述:
What is Data Execution Prevention?
Data Execution Prevention (DEP) is a security feature that can help prevent damage to your computer from viruses and other security threats. Harmful programs can try to attackWindows by attempting to run (also known as execute) code from your computer's memory reserved for Windows and other authorized programs. These types of attacks can harm your programs and files.
DEP can help protect your computer by monitoring your programs to make sure that they use computer memory safely. If DEP notices a program on your computer using memory incorrectly, it closes the program and notifies you.