Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > .NET

Lost Password?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-01-2002, 11:08 AM
Rodney Rodney is offline
Junior Member
 
Join Date: Mar 2002
Posts: 2
Default 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;
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 PM.


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