Re:Bug alert - BDE 2.52 causes table corruption
Svein Olav Mytting <bolle...@telepost.no> wrote:
Quote
<snip>
>Which BDE driver do do use?
>The problem persists with ANSI drivers as well as others. I have tested
>with Pdox Ansi Intl as well as Pdox Ansi NorDan4.
>There seems however, to be confusion as to whether the problem is limited
>to BDE 2.52. Somebody said it also exists with newest 32-bit BDE.
[USING BDE 2.5 - that shipped with Delphi 2.01]
Interesting. I myself live in sweden and are using the "swedfin".
At this very moment I would create some tables with the ø
character in. I decided to change the default table language driver
for paradox to "nordan". It did indeed change in the BDECFG utility,
but watch my registry:
The first key here is -- indeed -- also the key to the solution of at
least my problem. BDECFG does NOT change this key, although it's used
by the BDE. That's what I call a bug!
If I change [... DRIVERS\PARADOX\INIT] myself to "nordan" it works
perfectly, i.e. my table creates with "nordan" default as default
language driver.
My question for you is, isn't there a way in Delphi [with code] to set
the language driver for a table. Or must you then use the unsupported
BDEAPI toolkit with "NO WARRANTIES" (I'm scared).
My solution for now is to read the registry keys, change them and then
store the old ones back. {*word*127}, but what to do?
/Magnus
----------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database
Engine\Settings\DRIVERS\PARADOX\INIT]
"VERSION"="1.0"
"TYPE"="FILE"
"LANGDRIVER"="swedfin"
^^^^^^^ ----------This is not changed by BDECFG
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database
Engine\Settings\SYSTEM\INIT]
"VERSION"="1.0"
"LOCAL SHARE"="FALSE"
"MINBUFSIZE"="128"
"MAXBUFSIZE"="2048"
"LANGDRIVER"="nordan"
^^^^^^^
"MAXFILEHANDLES"="48"
"SYSFLAGS"="0"
"LOW MEMORY USAGE LIMIT"="32"
"AUTO ODBC"="FALSE"
"DEFAULT DRIVER"="PARADOX"
"SQLQRYMODE"=""
"SHAREDMEMSIZE"="2048"
"SHAREDMEMLOCATION"=""
"DATA REPOSITORY"="Sample Data Dictionary"