Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > .NET

Lost Password?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
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);
Session.Active := False;
Session.NetFileDir := 'D:\';
Session.PrivateDir := 'D:\MasterDb';
Session.Active := True;
on EDBEngineError do
ShowMessage('Session error');
tblCustomer.Active := True;
on EDBEngineError do
ShowMessage('Cannot open table');
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.