My application has a main form in UnitA and a supporting
auto-created UnitB. Both units have initialization and OnCreate
procedures.
What is the processing order of events when this program starts up?
Similarly, with finalization and OnClose procedures, what is the
order when the program terminates?
I could answer your question, but instead I will tell you how to find out
the answer by yourself :-)
Delphi has a debugger. A very good debugger by the way. You can set
breakpoint ans run step by step, examining variables and so on. That's what
all debugger are able to do by the way.
You'll find the answer to your question by setting breakpoint in the various
events you are interested in. Just open the source code and hit F5 on the
lines you want to put a breakpoint on. Then hit F9 to run your program. It
will start and stop on your breakpoint whenevr they are reached. When a
breakpoint is reached, just hit F9 again to let the program continue until
the next breakpoint. During this process, you'll see the order in which each
breakpoint is triggered.
Hopes this helps.
--
[email protected]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk