The user just got around to installing a test version of the app with some
ShowMessages in the Form's OnCreate event, but nothing appeared, so it's not
even getting to execute the OnCreate event.

In summary, the app hangs during
Application.CreateForm(TStudioForm, StudioForm);

But the OnCreate event for this form is not executed for this user.

So what does this mean?  What else is executing during for CreateForm
procedure that could cause it to hang?  How can I debug this?  I have
MadExcept compiled in but it doesn't activate.

Thanks,
Ross.

> -----Original Message-----
> From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On
> Behalf
> Of Wilfried Mestdagh
> Sent: Wednesday, 17 June 2009 10:56 p.m.
> To: Borland's Delphi Discussion List
> Subject: Re: App hanging during load
>
> Hello Ross,
>
> > Application.CreateForm(TStudioForm, StudioForm);
> > showmessage('Initialize 3'); <<< IT DOESN'T GET HERE
>
> You can set some debug information in the OnCreate event of TStudioForm.
>
> ---
> Rgds, Wilfried
> http://www.mestdagh.biz
>
> -----Original Message-----
> From: Ross Levis [mailto:r...@stationplaylist.com]
> Sent: Wednesday, 17 June 2009 6:23 p.m.
> To: 'Borland's Delphi Discussion List'
> Subject: App hanging during load
>
> I'm having a major issue with my D7 application not loading on some Vista
> computers.  It is only affecting 3 or 4 users out of several hundred using
> Vista, with most users still using XP where no problems have ever been
> reported.  The app itself hasn't changed much over several years.
>
> I added some ShowMessages to the app to attempt to pinpoint where it is
> hanging, and this turned out to be in the project source file...
>
> SplashForm := TSplashForm.Create(Application);
> SplashForm.Show;
> showmessage('Initialize 1');
> Application.Initialize;
> showmessage('Initialize 2');
> Application.Title := 'Studio';
> Application.CreateForm(TStudioForm, StudioForm);
> showmessage('Initialize 3'); <<< IT DOESN'T GET HERE
>
> A user reports the last message is 'Initialize 2'.
>
> One user reported the problem started after Windows Update installed Vista
> SP2, but other users had this problem from day 1 with SP1.
>
> I have had Vista SP1 installed here for 12 months or more and never had
any
> problem running my software.  I recently updated to SP2 and still no
> problem.
>
> I believe all the Initialization sections of all units are executed during
> the Uses clauses above this code.  StudioForm itself doesn't have an
> Initialization section.  I've checked all the Initialization sections of
> all
> my units and they execute before 'Initialize 1'.
>
> Is there any way to debug this further, or any ideas what the problem
could
> be.  I have madExcept compiled into the code but it doesn't help.
>
> Is it possible some unit specified in the Uses clause of StudioForm could
> be
> hanging?
>
> Thanks,
> Ross.

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to