Subject Re: [IBO] Initialization code for IBObjects
Author Steve Harp
--- In, Helen Borrie <helebor@t...> wrote:
> At 11:43 PM 29/08/2005 +0000, you wrote:
> >Hi All,
> >
> >I have a problem where I have 2 applications out of a suite of about
> >10 that won't run on certain XP machines.
> What does "don't run" actually mean? In what way(s) do they fail? Are
> these two applications consistent in the way they fail?
> >These applications are
> >running perfectly on hundreds of other computers with various versions
> >of Windows. The only library that these 2 applications have in common
> >and is not used in the other applications is IBObjects.
> >
> >I've added logging code into the beginning of the OnCreate methods for
> >the main form and the data madule. The main form is created first
> >thing and both the main form and datamodule are auto created. Nothing
> >happens in the dpr except the normal stuff that Delphi puts there. No
> >log is created which means that the OnCreate method of the main form
> >never even fires.
> In your DPR, have you taken explicit care of the creation order of
> and datamodules? That is, taking care that the DM is created before any
> forms that contain controls that use it, etc.
> >Can anyone tell me if there is anything in the initialization code for
> >the library that could cause this? Any other ideas?
> 1. Are you sure that IBO is looking for and loading the correct client
> library?
> 2 What about hard-coded database paths that might be lurking around in
> statement objects? (quite a common legacy in converted projects!)
> 3. In case the IBO element is coincidental, are you sure that the
> Microsoft C and C++ runtimes are installed on the problem servers?
Hi Helen,

"don't run" means it never even flashes on the task bar. It never
shows up in processes under task manager.

As I said the main form is created first in the dpr but it's OnCreate
method never fires (Application.CreateForm(TfrmMain, frmMain);).

I'm not sure this is related to IBO. I just can't think of anything
else that's unique to these 2 applications.

There are no hard coded database paths. I don't know anything about
the use of MS C or C++ stuff; these are Delphi 7 apps.

Also, these applications are running on hundreds of computers so the
problem has to be machine specific. I just don't have a clue what to
look for.