BDE 32-bit & 16-bit 
Author Message
 BDE 32-bit & 16-bit

Hi all!
I stumbled across the following problem.
I'm writting a program on delphi 5 with a use of BDE 5.11.
The program inputs information into a large database at specific times.
Data, however is being processed by programs written earlier on Delphi 1
(16-bit),  by a third party.
The problem is that when a table is launched in a 32-bit program, the 16-bit
programs can not read the information from the database. More precisly,
reads only the information which was in the database at the moment of
launching the 32-bit program.
As soon as table is closed, all of information becomes readable.
Function of my program is to operate around the clock. Checking the data can
be performed occasionaly (by need), however my program can not be halted,
otherwise loss of data will occur. In addition, the data is being checked
via network from another building.
Maybe someone is familiar with a similar problem.
Please reply by e-mail or in the next issue of your newsletter, if it will
be available soon.
Thank You in advance.

With best regards, Igor V. Mashentsev
Nikolaev, Ukraine




Sat, 27 Sep 2003 14:49:06 GMT  
 BDE 32-bit & 16-bit
Have you set LOCAL SHARE to TRUE and NET DIR to the same location as the
16-bit apps ?



Quote:
> Hi all!
> I stumbled across the following problem.
> I'm writting a program on Delphi 5 with a use of BDE 5.11.
> The program inputs information into a large database at specific times.
> Data, however is being processed by programs written earlier on Delphi 1
> (16-bit),  by a third party.
> The problem is that when a table is launched in a 32-bit program, the
16-bit
> programs can not read the information from the database. More precisly,
> reads only the information which was in the database at the moment of
> launching the 32-bit program.
> As soon as table is closed, all of information becomes readable.
> Function of my program is to operate around the clock. Checking the data
can
> be performed occasionaly (by need), however my program can not be halted,
> otherwise loss of data will occur. In addition, the data is being checked
> via network from another building.
> Maybe someone is familiar with a similar problem.
> Please reply by e-mail or in the next issue of your newsletter, if it will
> be available soon.
> Thank You in advance.

> With best regards, Igor V. Mashentsev
> Nikolaev, Ukraine





Sat, 27 Sep 2003 15:53:39 GMT  
 BDE 32-bit & 16-bit

Quote:

> The problem is that when a table is launched in a 32-bit program, the 16-bit
> programs can not read the information from the database. More precisly,
> reads only the information which was in the database at the moment of
> launching the 32-bit program.

It's all in the BDE NetFileDir -setting. All the 16 and 32 bit applications
must share exactly the same record locking files, and they remain in the
directory called NetFileDir.

Here NetFileDir can not have long filenames, because that's too hard for
16-bit BDE to handle.
Also forget all the \\MYDIRECTORY style notations everywhere, use only
old style, real drive letters and directorynames like D:\MYDIR

Markku Nevalainen



Sat, 27 Sep 2003 16:52:38 GMT  
 BDE 32-bit & 16-bit
I have suspected for some time that "DbiUseIdleTime" needs to be called
regularly, even by 32-bit programs, and this observation tends to strongly
confirm that in my mind.


Quote:

> Have you set LOCAL SHARE to TRUE and NET DIR to the same location as the
> 16-bit apps ?



> > Hi all!
> > I stumbled across the following problem.
> > I'm writting a program on Delphi 5 with a use of BDE 5.11.
> > The program inputs information into a large database at specific times.
> > Data, however is being processed by programs written earlier on Delphi 1
> > (16-bit),  by a third party.
> > The problem is that when a table is launched in a 32-bit program, the
> 16-bit
> > programs can not read the information from the database. More precisly,
> > reads only the information which was in the database at the moment of
> > launching the 32-bit program.
> > As soon as table is closed, all of information becomes readable.
> > Function of my program is to operate around the clock. Checking the data
> can
> > be performed occasionaly (by need), however my program can not be halted,
> > otherwise loss of data will occur. In addition, the data is being checked
> > via network from another building.
> > Maybe someone is familiar with a similar problem.
> > Please reply by e-mail or in the next issue of your newsletter, if it will
> > be available soon.
> > Thank You in advance.

> > With best regards, Igor V. Mashentsev
> > Nikolaev, Ukraine





Sat, 27 Sep 2003 23:59:05 GMT  
 BDE 32-bit & 16-bit

Quote:

> I have suspected for some time that "DbiUseIdleTime" needs to be called
> regularly, even by 32-bit programs, and this observation tends to strongly
> confirm that in my mind.

Borland warns to never use DbiUseIdleTime as it has no flushing effect:
http://www.borland.com/devsupport/bde/bdeapiex/dbiuseidletime.html

If this function it's useless, I wonder why Borland has kept it years
packed in Delphi/BDE package.

With BDE it's LocalShare = True that makes the whole thing!
Someone suggested to use DbiSaveChanges still along with that. But without
knowing the exact BDE internal design, I quess the built in LocalShare trigger
always gets fired first, and before thus the DbiSaveChanges call would be late
or useless anyway.

Markku Nevalainen



Sun, 28 Sep 2003 01:49:44 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. 32 bit bde with 16 bit odbc

2. Delphi/BDE 16 bit VS 32 bit

3. 16 bit and 32 bit BDE with same table

4. 32 bit BDE with 16 bit ODBC Drivers

5. 16 &32 bit BDE on same database files

6. Convert 32 bit component to 16 bit ??

7. 16 bit ODBC drivers in the 32 bit environment

8. CRC 16-bit and 32-bit

9. Upgrade 16-bit application to 32-bit

10. Upgrade 16-bit application to 32-bit

11. 16-bit to 32-bit

12. 16-bit Application and 32-bit ODBC

 

 
Powered by phpBB® Forum Software