gpt4 book ai didi

delphi - "Package Cache"注册表项的用途是什么?

转载 作者:行者123 更新时间:2023-12-04 03:56:37 25 4
gpt4 key购买 nike

什么是“缓存”包?

我可以删除这个注册表分支中的条目,而不给我的 Delphi 项目带来麻烦吗?

最佳答案

我正在尝试找出为什么我的 Delphi IDE 需要很长时间才能打开。我知道这与我们的组件有关,当 IDE 开始加载时它开始变慢。使用 procmon,我看到 IDE 读取包缓存注册表,它试图在其中找到 Report 和 DetailedReport 键,但没有找到。我看到了this它说:

You can also enable reporting globally by going to HKCUSoftwareBorlandBDS3.0Package Cache and adding one or both of the following values: Report=1 or DetailedReport=1. They correspond to EnableDemandLoadReport(False) and EnableDemandLoadReport(True), respectively. The cool thing is that you can enable reporting in this manner and see detailed reports for all design-time packages that the IDE loads, including all the Borland supplied packages.

理论上,当启用 DetailedReport 时,它应该在 IDE 加载组件时创建一个扩展名为 .rpt 的报告文件,描述为什么它不符合延迟加载的条件。也许这在 Delphi Tokyo 中不起作用,因为它是从 Delphi 2005 发布的,但即使如此,IDE 也会读取此注册表。

procmon

默认情况下不存在此键,我创建了它。之前,procmon 在结果列中显示 NAME NOT FOUND。

关于delphi - "Package Cache"注册表项的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14436047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com