mthakershi
Programmer
Hi folks,
I am using Paradox database with Borland C++. This is the first time I am using both of them. So I am little bit scared when I face errors.
Executable and database are in different directories. When I am running the EXE it generates Paradox lock file in same directory. Once it increases size around 25 MB it gives error "Lock file has grown too large" and after that "Capacity not supported".
I found solution to create 'Tables', 'PRIV' and 'NET' directories in folder having EXE and set sessions properties. For that I need to call following functions.
DbiSetPrivateDir(szPath);
DbiSetProp(hSes, sesNETFILE, (UINT32)szPath);
Can somebody tell me from where in code I can call this functions? My project in BC++ Version 5.0 and I am using data modules and Woll2Woll controls for connecting to BDE and access to database.
If someone has some other idea to fix this problem without moving my database files then please help me out.
Any help is appreciated,
Malay Thakershi
mthakershi@yahoo.co.in
I am using Paradox database with Borland C++. This is the first time I am using both of them. So I am little bit scared when I face errors.
Executable and database are in different directories. When I am running the EXE it generates Paradox lock file in same directory. Once it increases size around 25 MB it gives error "Lock file has grown too large" and after that "Capacity not supported".
I found solution to create 'Tables', 'PRIV' and 'NET' directories in folder having EXE and set sessions properties. For that I need to call following functions.
DbiSetPrivateDir(szPath);
DbiSetProp(hSes, sesNETFILE, (UINT32)szPath);
Can somebody tell me from where in code I can call this functions? My project in BC++ Version 5.0 and I am using data modules and Woll2Woll controls for connecting to BDE and access to database.
If someone has some other idea to fix this problem without moving my database files then please help me out.
Any help is appreciated,
Malay Thakershi
mthakershi@yahoo.co.in