Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XP / Delphi / Paradox - program just goes on task manager and sits

Status
Not open for further replies.

blacksteve

Technical User
Oct 23, 2002
12
GB
Hi
I have written a program which has run well using Delphi 3 and Paradox 7 on a Win 98 machine.
My customer wanted to upgrade to XP and there my problems began.
On my main XP machine the program runs in the task manager but does not even bring up the first menu.. If I try to run a second copy then BOTH programs come up with a menu and fight with each other.
On My portable XP machine it all runs well.
On My customers XP machine - it runs, but different results come up from the same data !
This is the sequence I have been doing things on all three machines.
1) Load Paradox 7
2) Load the latest BDE drivers
3) Load my application and data

I have wasted hours trying to resolve this. Anything I could try (for my customers machine or my main machine)

Regards

Steve
 
Go into the DPR and start writing debug statements to a file (close the file after every write) to find out where the problem is.

What does "...and fight with each other." mean?

Cheers
 
Richard
Thanks for you speedy response !
Could you tell me what the DPR is and also how to write a debug statement. I have books on Delphi but am not that well versed in the terminology...:)
Bare in mind that the developmenmt is done on a Win98 machine, and is then installed on the XP. Because of the good portable install I am going to try the customers machine after reinstalling everything whilst administrator. That seems to be key. On the XP system which fails - I think there is something wrong on quite a deep level, which is pertinent only to that machine

'Fight with each other' means that they both run very slow with each of them taking it in turns to bring the next menu up, a bit like leap frog.

There was another thing - just after sending the post - A version of the program which I had left running and not terminated self terminated with 'Unable to initialise the Borland Database Engine' - so the task manager fails it eventually.
 
Hi!

You may have to set SHAREDMEMLOCATION in the BDE Adminstrator. Set it to 0x5BDE or 0x6BDE and see if that helps. You can also increase the SHAREDMEMSIZE if that alone doesn't help.


Then if that too doesn't help I've read that it's also good to make sure the user has rights to the BDE directory and the BDE registry keys. Registry access is required to
HKEY_LOCAL_MACHINE\Software\Boland\Database Engine. And you can try running the app in Windows 98 compatibility mode.

 
The DPR is the project file. It has a list of all the other units explicitly in the project and some startup code. It is actually a source code file, but it acts like a manafest or make file (in conjunction with the IDE).

From the IDE, goto Project, View Source.

Did you install both times as the same user? It's possible that you really are running two copies of the BDE, although that is unlikely.

I have been known to "scrape" the Registry by searching for the path where the BDE is actually installed (e.g. C:\Program Files\Common Files\Borland Common\BDE) and deleting any entry that looks like it points there (e.g. HKEY_LOCAL_MACHINE\Software\Borland\DBEngine).

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top