🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.opentoolsapi
3 messages
3 total messages Started by Dan Hughes Mon, 21 Jul 2008 20:17
Form closed right after creation
#82
Author: Dan Hughes
Date: Mon, 21 Jul 2008 20:17
16 lines
1701 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
Re: Form closed right after creation
#83
Author: Lex Y. Li
Date: Fri, 25 Jul 2008 12:22
5 lines
1370 bytes
Hi Dan, IMHO use timeout is still the best solution. But there is 
another way. When you bind to IOTAService.FileNotification, you may know 
when the start up page is loaded into IDE. Then you can create your 
invisible form. However, if start up page is disabled by the user, this 
way fails.
Re: Form closed right after creation
#84
Author: 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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads