[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Standalone .EXE with Delphi 1.0?

Posted on 1997-06-25
3
Medium Priority
?
264 Views
Last Modified: 2010-05-18
I am writing an application in Delphi 1.0 that doesn't
use any database access.

However, when I send the EXE file to someone else, they
get the error "unable to initialise Borland Database
Engine".

Now, the application doesn't use any external resources,
so it should be possible to distribute it as a single
EXE file, shouldn't it?

Someone has already suggested that I am referencing a
unit that tries to initialise the BDE. However, I can't
find an obvious candidate. The list of units references
by the program are as follows:

  SysUtils, WinTypes, WinProcs, Messages, Classes,
  Graphics, Controls, Forms, Dialogs, Menus,
  ExtCtrls, StdCtrls, Buttons;

So, how do I get Delphi to stop trying to initialise BDE?

Thanks,

James
0
Comment
Question by:shingen
3 Comments
 
LVL 1

Expert Comment

by:flisakow
ID: 1337804
Yes, it is possible to distribute as a standalone EXE. I have Delphi games I distribute this way from my web site.

None of the units mentioned should be a problem, I use them all the time.  "DB", or "DBTables" might cause this.

I suggest you open the actual project file, and check to make sure you are only compiling the code you think you are.  If that doesn't lead anywhere, check the .DSK file to see if a file containing some database stuff is open, or considered to be in the project but not being used.

Shaun
http://www.kagi.com/flisakow/
0
 
LVL 1

Accepted Solution

by:
millerw earned 200 total points
ID: 1337805
If you place ANY database component on the form, the database system is installed in the program and ARE NOT REMOVED WHEN THEY ARE TAKEN OUT IN DELPHI 1.0.  The same thing happened to me in college why i accidentally put a TTable on a form and deleted it.  The program would not run after this and the way I fixed it was pretty much to cut all of my components that I wanted into a new form saved the form and started a new project.  

I think if you just create a new project, remove the generic form that comes up, add all of your form files back to the new project your problem will be fixed.  Sometimes with problems like this, starting over with a fresh project file is just as good (and less time consuming) than trying to find that single line of code that is causing your problems.  

If the problem persists, check all uses statements in every file your project contains (after the interface AND implementation in each unit file) to make sure all database units are removed.

That should fix the problem and make the EXE the only file you have to distribute.

Good Luck,
Scott
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1337806
Bought This Question.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 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