I have an application that was written by someone else. Sigh.
Anyway I am getting an access violation when it cannot connect to the database (MSSQL).
After hours of single stepping, I traced it to the destructors of the classes that are failing because the classes didn't get initialized right in the 1st place.
I am just trying to check our configuration and validate things before all these classes get created.
I tried inserting something between the main begin
and the Application.Initialize; lines as this seemed logical to me, but it never ran.
With a breakpoint on begin, then stepping into then next line gets me hip deep in our constructors where it is choking on the db not being found.
This is *before* the forms are created.
I tried in the main form create, but this was too late as well.
Why can I not step though the constructors?
How do I put off the constructors until after
I have validated things?
This is driving me nuts, I rather thought I understood Delphi program initialization.
Thanks,
Matt
Anyway I am getting an access violation when it cannot connect to the database (MSSQL).
After hours of single stepping, I traced it to the destructors of the classes that are failing because the classes didn't get initialized right in the 1st place.
I am just trying to check our configuration and validate things before all these classes get created.
I tried inserting something between the main begin
and the Application.Initialize; lines as this seemed logical to me, but it never ran.
With a breakpoint on begin, then stepping into then next line gets me hip deep in our constructors where it is choking on the db not being found.
This is *before* the forms are created.
I tried in the main form create, but this was too late as well.
Why can I not step though the constructors?
How do I put off the constructors until after
I have validated things?
This is driving me nuts, I rather thought I understood Delphi program initialization.
Thanks,
Matt