views:

62

answers:

1

This Delphi 2006 application has run successfully for several years. I have narrowed it hanging up to some point before it gets to the "initialize" in the DPR file so its hanging up before any written code gets executed. I press the "Run" icon and it never displays anything else, just stops running. Not much info to give, any ideas?

+6  A: 

There's a lot of things happening before the Initialize line runs. Most obviously, the initialization sections of all your units are running. My psychic debugging senses say you ought to check there. Build with Use Debug DCUs off (yes, off, not on; it helps a lot on this exercise,) run by hitting F7 instead of F9, and use F7 repeatedly to step through your chain of initializations. Somewhere along the line you'll probably find whatever's making your program hang.

Mason Wheeler
+1 for My psychic debugging senses... I used to say something like that in Spanish... :D
jachguate