Verify the code in various ways and determine that the code is correct, We suspected that it was a problem with delphi, So we reinstalled delphi, and the problem remained. Start to suspect the system problem. After restoring the system, install delphi. The program can be normal. [At that time, it was basically regarded as a system problem] However, after installing svn, the program encountered another problem. Is it related to svn? After the program crashes, delphi enters the debugging phase. At this time, we found in the call stack in the debugging window that will call TortoiseSVN. dll. that is, when delphi runs the program, it also associates with svn. It is suspected that it is related to the. svn folders in the source code. manually delete the folder and continue to run the program. The problem persists. In the end, we used 360 of the software update function to update svn to the latest version, 1.6.15.21041. The problem is solved in this way. It is estimated that the svn conflicts with delphi. There was no problem before, but now there is a problem. It should be related to the use of the TOpenDialog control in the new version of code. Summary: many exceptions need to be treated calmly, not from our code, but also from the development environment. We need to use exclusion to reduce the scope of judgment one by one to find the final cause. Although we still do not know the specific cause of the above situation, it solves the problem and does not affect the development progress. |