Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   .NET (http://www.delphipages.com/forum/forumdisplay.php?f=10)
-   -   How I can prevent "Directory Busy" using Session.NetFileDir? (http://www.delphipages.com/forum/showthread.php?t=47331)

Rodney 03-01-2002 11:08 AM

How I can prevent "Directory Busy" using Session.NetFileDir?
 
How can I prevent the "Directory is Busy" error when I open the application a second time? It occurs when I set the Session.NetDirFile property. For example:

procedure TformMain.FormCreate(Sender: TObject);
begin
Session.Active := False;
Session.NetFileDir := 'D:\';
Session.PrivateDir := 'D:\MasterDb';
try
Session.Active := True;
except
on EDBEngineError do
ShowMessage('Session error');
end;
try
tblCustomer.Active := True;
except
on EDBEngineError do
ShowMessage('Cannot open table');
end;
end;

Ted On The NeT 03-01-2002 11:11 AM

RE: How I can prevent "Directory Busy" using Session.NetFileDir?
 
on the same machine? or multiple PC's (like in a network)

<tt>
Greetz,
::TeD On The NeT::

=[ QUESTIONS ]=========================================
don't forget to accept this reply if it helped you! :)
================================================== =====

=[ EXTRA INFO ]========================================
Location : Netherlands (GMT +01.00)
Languages : English, Dutch, German
Age : 25
ICQ : Be smart and figure out what my UIN is...
================================================== =====
</tt>

Rodney 03-01-2002 11:25 AM

RE: How I can prevent "Directory Busy" using Session.NetFileDir?
 
On multiple PCs however the PC is essentially a dumb terminal since all of the software is on a single server.

Ted On The NeT 03-01-2002 11:32 AM

RE: How I can prevent "Directory Busy" using Session.NetFileDir?
 
try setting the NetFileDir to a serverpath, and the PrivateDir to the local harddisk, like C:\. Don't share the private path on a network, this will give you the current error. give it a try.

<tt>
Greetz,
::TeD On The NeT::

=[ QUESTIONS ]=========================================
don't forget to accept this reply if it helped you! :)
================================================== =====

=[ EXTRA INFO ]========================================
Location : Netherlands (GMT +01.00)
Languages : English, Dutch, German
Age : 25
ICQ : Be smart and figure out what my UIN is...
================================================== =====
</tt>

DarkHorse 03-02-2002 02:20 AM

RE: How I can prevent "Directory Busy" using Session.NetFileDir?
 
Hi,

Did u try setting the LOCAL SHARE property to TRUE in BDE Administrator.

Its in Configuration page -> SYSTEMS -> INIT.

Just have a try.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.


All times are GMT. The time now is 07:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.