我可以确定我的单位初始化的顺序吗? [英] Can I determine the order in which my units have been initialized?

查看:131
本文介绍了我可以确定我的单位初始化的顺序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可能连接到单元初始化顺序的错误。有没有办法看到哪个初始化部分被执行?我需要知道订单。这是在调试期间,所以我有Delphi IDE的全部功能,在我的情况下Delphi 2009。

I am hunting a bug which might be connected to unit initialization order. Is there a way to see which initialization section was executed when? I need to know the order. This is during debugging, so I have the full power of the Delphi IDE, in my case Delphi 2009.

我可以设置断点,但是当有很多时候,这是非常乏味的单位。

I could set breakpoints, but this is rather tedious when having many units.

你有什么建议吗?

推荐答案


对于接口中的单位使用列表,
客户端使用的
单元的初始化部分在
中执行,单位出现在
中的顺序客户端的使用条款。

For units in the interface uses list, the initialization sections of the units used by a client are executed in the order in which the units appear in the client's uses clause.

请参阅在线帮助\ 程序和单位 \初始化部分和本文:了解Delphi单元初始化顺序

see Online Help \ Programs and Units \ The Initialization Section and this article: Understanding Delphi Unit initialization order

ICARUS 为其使用报告计算运行时初始化顺序


此部分列出了运行时执行初始化部分的顺序。

This section lists the order in which the initialization sections are executed at runtime.

这篇关于我可以确定我的单位初始化的顺序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆