🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.opentoolsapi
Article #84

Re: Form closed right after creation

#84
From: Christian Wilkerson
Date: Sat, 26 Jul 2008 00:13
29 lines
2347 bytes
> Hello,
>
> I have a dll based expert that loads a hidden form that is used to 
> communicate with an external program.  The form is created when the expert 
> gets loaded and the code has worked correctly until Rad Studio 2007.  What 
> happens in RS 2007 is the form is created and then is destroyed shortly 
> after it is created.  I have found that if I delay the creation of the 
> form until after the IDE has finished loading other libraries that it work 
> correctly but the problem with this approach is that the time can vary 
> depending upon what is loaded upon starting Delphi.  Is there a 
> notification that I can use to get notified when the IDE has finished 
> loading all of the libraries so I can wait for the notification to create 
> my form?
>
> Thanks for your time.
>
> Dan
>
>

I know that using an IOTAIDENotifier you can get a notification for when a 
package is loaded.  Therefore, why not use your delay strategy, but add time 
to your delay everytime a package gets loaded.  That way you're sure to not 
end your wait too early.

-- 
Christian Wilkerson
Home made country music
@ http://www.myspace.com/christianwilkersonmusic 
Technical Details
Message-ID: <488a6c10$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!out01b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!207.99.111.53.MISMATCH!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <a2abcec964f8cab9646c234cb0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,8f5d779d02faabb2
X-Google-Attributes: gid10c3df,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Christian Wilkerson" <cpwilkerson@no.spamming.charter.net>
Newsgroups: borland.public.delphi.opentoolsapi
References: <a2abcec964f8cab9646c234cb0@newsgroups.borland.com>
Subject: Re: Form closed right after creation
Date: Fri, 25 Jul 2008 17:13:05 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 66.215.186.88
Message-ID: <488a6c10$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1217031184 66.215.186.88 (25 Jul 2008 17:13:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!out01b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!207.99.111.53.MISMATCH!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail