Solved

BDE Delay

Posted on 1997-03-14
2
192 Views
Last Modified: 2013-11-23
Is there any way to move the long delay (that occurs when a delphi program starts) so that it occurs AFTER a Splash screen can come up?  I have a splash screen that is dynamically created and shown just after the BEGIN in the DPR file.  This delay seems to be dependent on the number of users which are connected to the .NET file...  I also think that is occurs during the creation of the Session.
0
Comment
Question by:Mike Strauser
2 Comments
 
LVL 3

Accepted Solution

by:
sperling earned 100 total points
ID: 1334762
Create a DLL, which displays the splash form when loaded, and exports a call allowing it to be removed. If you're unsure about DLL's, leave me a comment.

Add a unit to your project. This unit should explicitly load the dll.

Unit SplashForm;

interface
 
  procedure RemoveSplash; stdcall; external 'SPLASHDLL.DLL';

implementation

end.



Make sure this unit is included as the first unit in your projects source. This will force your splash DLL to be loaded before the DBEngine.

Erik.
0
 

Author Comment

by:Mike Strauser
ID: 1334763
I solved the problem without a DLL.  Proper placement of the Splash Forms Unit in the DPR file along with Initialization code in the Spash Unit did the trick - much simpler than a DLL.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now