Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

ApplicationServices not instantiating (D2010)

 Post Reply Post Reply
Author
Ilola Jouni View Drop Down
New Member
New Member
Avatar

Joined: 14 Jul 2010
Posts: 4
Post Options Post Options   Quote Ilola Jouni Quote  Post ReplyReply Direct Link To This Post Topic: ApplicationServices not instantiating (D2010)
    Posted: 14 Jul 2010 at 4:22pm
Hi all!

Does anyone have an idea why my ApplicationServices variable is not getting instantiated when I try to create a simple Hello World type test?
The demos from the distribution work so I don't think it's an installation problem.
I'm getting frustrated as I cannot see any (significant) difference between the demo project and mine.

Best,
Jouni
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7903
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 14 Jul 2010 at 5:19pm
Not sure what is causing this. Do you setup package dependencies properly ?
If a problem persists, most likely, the fastest way to trace this is by sending some sample source project that has the problem by direct email.
Back to Top
Ilola Jouni View Drop Down
New Member
New Member
Avatar

Joined: 14 Jul 2010
Posts: 4
Post Options Post Options   Quote Ilola Jouni Quote  Post ReplyReply Direct Link To This Post Posted: 15 Jul 2010 at 11:05am
Thanks for your reply.

It seems to me one reason could be the upfintf package (which contains the ApplicationService variable) is not consistently seem by the application and the plugin.
One reason may be differing search paths (I haven't verified this yet).
Since the demo projects work there should be some viosible differences between project options.

I'll go through the project settings and get back with the sample project if the problem still persists.

regards,
Jouni
Back to Top
Ilola Jouni View Drop Down
New Member
New Member
Avatar

Joined: 14 Jul 2010
Posts: 4
Post Options Post Options   Quote Ilola Jouni Quote  Post ReplyReply Direct Link To This Post Posted: 15 Jul 2010 at 11:38am
Ok. I finally saw where I had a difference.
I was loading the plugins in an overridden TForm.Loaded method.
The demo was doing this in TForm.FormShow.

I changed mine to do the same and presto! It seems I need to go back and review when different things get initialized. Apparently the applictionservices variable gets initialized AFTER loaded but BEFORE FormShow.
This was a silly oversight on my part. Live and learn, eh?

regards,
Jouni
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7903
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 15 Jul 2010 at 1:05pm
Ok, thanks for informing the issue was found & solved.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down