You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Delphi Tokyo 10.2.2项目应用图标设置抛出异常求助

解决Delphi Tokyo 10.2.2项目选项设置失败的问题

Hey there, sorry to hear you're stuck with this frustrating project options error even after reinstalling Delphi Tokyo 10.2.2. Since I can't view your attached image, I'll walk you through the most common fixes for this kind of issue—these have resolved similar problems for many developers in the community.

1. 清除Delphi缓存与配置文件

Delphi stores a lot of cached settings that can get corrupted over time, and regular reinstalls often don't wipe these. Try these steps:

  • Fully close the Delphi IDE.
  • Navigate to C:\Users\<你的用户名>\AppData\Roaming\Embarcadero\BDS\19.0 (the default path for Tokyo 10.2.2) and delete the entire folder.
  • If the folder C:\Users\<你的用户名>\AppData\Local\Embarcadero\BDS\19.0 exists, delete it too.
  • Restart Delphi and try accessing project options again.

2. 修复注册表与IDE组件

Corrupted registry entries or unregistered components can also trigger this issue:

  • Open Command Prompt as Administrator.
  • Go to the bin folder of your Delphi Tokyo installation (usually C:\Program Files (x86)\Embarcadero\Studio\19.0\bin).
  • Run the command: bds.exe -r to reset IDE settings to default.
  • Additionally, re-register core IDE components with these commands (use C:\Windows\SysWOW64\regsvr32.exe for 64-bit systems):
    regsvr32.exe "C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\designide190.bpl"
    regsvr32.exe "C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\coreide190.bpl"
    

3. 排查项目文件损坏问题

Sometimes the problem lies with your specific project, not the IDE itself:

  • Create a brand new empty VCL/FMX project and check if you can access its project options. If this works, your original project file is likely corrupted.
  • Open the corrupted project's .dproj file in a text editor (like Notepad++) and compare it with a working project's .dproj file. Look for missing or malformed XML elements (common issues include unclosed tags or invalid property values).
  • Alternatively, create a new project and add all forms, units, and resources from your original project—this often bypasses corrupted project settings.

4. 彻底重装(带完整清理)

Your first reinstall might have left leftover files. Try a full clean reinstall:

  • Uninstall Delphi Tokyo from Control Panel > Programs and Features.
  • Delete the installation directory (default: C:\Program Files (x86)\Embarcadero\Studio\19.0).
  • Delete the two AppData folders mentioned earlier.
  • Use a registry cleaner (like CCleaner) to remove leftover Embarcadero registry entries (only delete entries clearly related to Delphi 19.0/Tokyo to avoid accidental damage).
  • Restart your computer, then run the Delphi installer again as Administrator.

5. 检查Windows兼容性与更新

Outdated system files can cause compatibility issues with Delphi:

  • Make sure your Windows OS is fully updated with all available patches.
  • Try running Delphi in Compatibility Mode: Right-click the Delphi shortcut (or bds.exe in the installation bin folder) > Properties > Compatibility tab. Check "Run this program in compatibility mode for" and select Windows 7 (Tokyo was released around this time, which often fixes compatibility glitches). Also check "Run this program as an administrator" and click Apply.

If you can share the specific error message from your image later, I can give you a more targeted solution. But these steps cover most common fixes for this type of problem.

内容的提问来源于stack exchange,提问作者shariful

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:58:44