The program exits abnormally without initializing.
You may be declaring a pen, brush, icon, cursor or colour globally. These objects automatically add themselves to global lists which may not be initialized before the object constructors are called, and so only global pointers to these objects may be declared. After or during OnInit is called, these objects may be created with impunity.