Can I determine the order in which my units have been initialized?

后端 未结 5 2066
长情又很酷
长情又很酷 2020-12-10 03:37

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 t

5条回答
  •  感动是毒
    2020-12-10 04:30

    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.

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

    ICARUS computes the Runtime initialization order for its Uses Report:

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

提交回复
热议问题