Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2003.03.20;
Скачать: [xml.tar.bz2];

Вниз

Проблема с файлами lck   Найти похожие ветки 

 
Сергей Шапранов   (2003-02-27 18:23) [0]

При отработке нескольких TQuery разрастается lck файл
При одном компоненте TQuery lck-шка не растет т.е. отработал SQL закрыл - файл lck удаляется. А если Компонентов несколько и они работают однавременно, то хоть закрывай, хоть не закрывай. Может кто-нибудь сталкивался с этой проблемой? Заранее благодарен.


 
MsGuns   (2003-02-27 23:25) [1]

lck создается при ЛЮБЫХ доступах к ЛЮБЫМ таблицам Парадокс, для сохранения рез-тов запросов используются файлы sql.
Размер lck НЕ ЗАВИСИТ от кол-во КОМПОНЕНТОВ TQuery, а зависит от числа открытых таблиц и наложенных на каждую из них блокировок


 
vdv   (2003-02-28 04:53) [2]

У меня такая проблема так и не разрешилась,
Это происходит (у меня) когда запускается Query с параметром и выход был только через PrivateDir...
Это происходит если вообще уже кто-нибдь работает с базой т.е. есть *.lck не обязательно Query


 
Виталий Панасенко   (2003-02-28 08:44) [3]

TI256B.txt Removing "Lock file has grown too large" Error
Category :General Programming
Platform :All
Product :BDE All
Description:
Lock file has grown too large, Decimal:9495 Hex:2517
----------------------------------------------------
This problem is specific to Paradox tables and can be caused
in any BDE (16 or 32 Bit) application that meet some or all
of the following criteria:

1) The Executable is in the same directory as the table.
2) The Private Directory is not correctly set or not set
at all.
3a) Delphi: Having a TTable open on a paradox table and
then performing multiple TQuery operations.
3b) C / C++: Having a table open with DbiOpenTable and
then performing multiple queries with DbiQExec and/or
DbiQExecDirect.
4) LOCAL SHARE set to true in the BDE Configuration
Utility on the System page.

To solve the problem, make sure that your application has
done ALL of the following:

1) Under the directory where the executable is, create
three new directories: TABLES, PRIV, and NET. Place
all the tables for the application into the TABLES
directory.
2) Set the session"s private directory to the PRIV
directory. Take the following steps according to
the software you are using.

DELPHI:
Session.PrivateDir := ExtractFilePath(ParamStr(0)) + "PRIV";

C / C++:
DbiSetPrivateDir(szPath);
// szPath is the fully qualified path (not relative)
// to the PRIV directory.

3) Set the session"s network directory to the NET
directory. Take the following steps according to
the software you are using.

DELPHI:
Session.NetFileDir := ExtractFilePath(ParamStr(0)) + "NET";

C / C++:
DbiSetProp(hSes, sesNETFILE, (UINT32)szPath);
// szPath is the fully qualified path (not relative)
// to the NET directory.

// hSes is the current session handle. This can be
// retrieved using the DBiGetCurrSession function.

4) If LOCAL SHARE is set to true and you are not sharing
tables between different applications at the same time,
change LOCAL SHARE to false.



Страницы: 1 вся ветка

Форум: "Базы";
Текущий архив: 2003.03.20;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
1-64152
oly
2003-03-07 14:19
2003.03.20
Работа с DLL


14-64352
none
2003-03-05 09:06
2003.03.20
декомилятор


1-64214
Adolf
2003-03-09 10:46
2003.03.20
Code


3-63945
idz
2003-03-02 22:40
2003.03.20
Получение списка внешних ключей для таблицы Access


1-64160
Igor Kashtanov
2003-03-07 01:45
2003.03.20
PopUp Menu,





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский