Previously, Delphi7 runs normally on win7 64bit. Some system patches (usually through 360) may occur one day:
1. When Delphi exits, it will crash. After several design packages are not installed, the problem disappears;
2. If a previous project is compiled using runtimepackage and the EXE exits, it also crashes. However, when the test path is identical, it does not run every time. The tracing result is found in unloadpackage --> freelibrary --> oleaut32.dll/sysfreestring
Solution steps:
1. Run the command with the administrator account. No solution.
2. Run the command in compatible WINXP SP3 mode. No solution.
3. Check SFC/scannow from msdn to check the DLL of the repair system. It took more than an hour to execute the check. No oleaut32.dll was found in the TXT report. No solution.
4. check whether any system patch is installed through Windows Update. Still not solved.
5. Restore the operating system with the original ISO once.
6.ProgramCopy to another computer for execution. WINXP, win7 32bit, and win7 64 bit cannot be reproduced.
7. It may be that DCP with the same name is available in different directories (Borland \ Delphi \ Lib and Borland \ projects \ BPL, such as tee. DCP, because we bought the Professional Edition; Indy. DCP, with the open-source version 9018). As a result, BPL uses different DCP for compilation, resulting in inconsistent address layout. Delete the old DCP and compile it all again. Haha, the problem is solved. This problem was previously encountered in a similar situation, but it was a strange AV error. It was also found for a long time. This time I thought it was a problem with the operating system, and I was puzzled. why did this happen not every time? There should be a deeper reason why I didn't find it.