Two PDOXUSRS.NET Files 
Author Message
 Two PDOXUSRS.NET Files

All;

    Need some help on figuring out why I keep getting 'Directory is
controlled by other .NET file' Directory C:\.
I create my alias upon execution of my application.  I first delete the old
alias and then create a new alias.  Prior to creating the new alias, I set
my PrivateDir and NetFileDir paths.  Everything as far as I can tell is set
up correctly and verified via the de{*filter*}.  If I have a TQuery on the Main
Program Page, it works, but my dialogs/children windows that have TQueries
don't.  Weird...

    If I look for PDOXUSRS.NET files on my HD, I find two of these files.
One in the data directory where I specified during my alias creation and
another one in the C:\ root directory.  I delete both of these prior to
executing my app and the C:\ location always gets a PDOXUSRS.NET file.
Why????  This is a local application, no network clients.

    This is further confusing when I open a TQuery in the IDE.  The TSession
is set appropriately with the PrivateDir set to where my application is and
the NetFileDir where my data is.  When I set the active property of the
TQuery to true, I get the 'Directory is controlled by other .NET file'
Directory C:\ from my Dialogs/Children windows but not the TQuery on the
Main Program Page.  If I blank out the PrivateDir and NetFileDir property,
it works.  BTW, I get the same error whether I run my application from
within the IDE or standalone.  The problem almost sound like there is
another TSession in use somewhere.

    Also, in the OnCreate event of my app I always set the
TDatabase.Connected to False and the TSession.Active to False before
anything else. Then I delete the alias if it exists and recreate it in the
BDE with the appropriate paths.  If I forget to set these two items to false
prior to running my app, I always get the 'Directory is Busy' error.  How
can I avoid this error in code?  Having to always remember to set these two
items to false prior to compiling is a pain.

    Any help/suggestions would be helpful.

Dean Jones
Personal Tech Software



Thu, 11 Sep 2003 05:20:54 GMT
 Two PDOXUSRS.NET Files

1. Are all your TTable and TQuery components using the same TSession ?
2. You shouldn't have to set TSession.Active to False in the OnCreate. You
should have designed your application so it is inactive by default !
3. Why are you creating a persistant alias if you are only going to use it
in your application ? You should use a temporary alias (TDatabase) instead.



Quote:
> All;

>     Need some help on figuring out why I keep getting 'Directory is
> controlled by other .NET file' Directory C:\.
> I create my alias upon execution of my application.  I first delete the
old
> alias and then create a new alias.  Prior to creating the new alias, I set
> my PrivateDir and NetFileDir paths.  Everything as far as I can tell is
set
> up correctly and verified via the de{*filter*}.  If I have a TQuery on the
Main
> Program Page, it works, but my dialogs/children windows that have TQueries
> don't.  Weird...

>     If I look for PDOXUSRS.NET files on my HD, I find two of these files.
> One in the data directory where I specified during my alias creation and
> another one in the C:\ root directory.  I delete both of these prior to
> executing my app and the C:\ location always gets a PDOXUSRS.NET file.
> Why????  This is a local application, no network clients.

>     This is further confusing when I open a TQuery in the IDE.  The
TSession
> is set appropriately with the PrivateDir set to where my application is
and
> the NetFileDir where my data is.  When I set the active property of the
> TQuery to true, I get the 'Directory is controlled by other .NET file'
> Directory C:\ from my Dialogs/Children windows but not the TQuery on the
> Main Program Page.  If I blank out the PrivateDir and NetFileDir property,
> it works.  BTW, I get the same error whether I run my application from
> within the IDE or standalone.  The problem almost sound like there is
> another TSession in use somewhere.

>     Also, in the OnCreate event of my app I always set the
> TDatabase.Connected to False and the TSession.Active to False before
> anything else. Then I delete the alias if it exists and recreate it in the
> BDE with the appropriate paths.  If I forget to set these two items to
false
> prior to running my app, I always get the 'Directory is Busy' error.  How
> can I avoid this error in code?  Having to always remember to set these
two
> items to false prior to compiling is a pain.

>     Any help/suggestions would be helpful.

> Dean Jones
> Personal Tech Software



Fri, 12 Sep 2003 20:38:47 GMT
 Two PDOXUSRS.NET Files


Quote:
>All;

>    Need some help on figuring out why I keep getting 'Directory is
>controlled by other .NET file' Directory C:\.
>I create my alias upon execution of my application.  I first delete the old

This seems to me an indication that something is starting the BDE
before your app starts setting up its special conditions. I would look
at the file creation times for the two .net files. I suspect the one
in C:\ is created first.

Secondly, I would look through the whole app to make sure that no
TTables of TQueries are created in with Active := true. This could
cause your netfile problem. Also, look at the autocreate list
[Project|Options] to see which units are created at startup, and in
which order. Look for anything that requires the BDE being created
before your setting of the alias params.

HTH,
Dan
--
Dan Brennand
CMDC systems, inc.
Configuration Management and Document Control:
visit us at www.cmdcsystems.com



Sat, 13 Sep 2003 00:45:13 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Tired of Pdoxusrs.LCK and Pdoxusrs.NET files.

2. pdoxusrs.net File Corrupted

3. Pdoxusrs.net files

4. PDOXUSRS.NET file (help!)

5. Multiple *.NET FILES PDOXUSRS.LCK

6. PDOXUSRS.NET file (help!)

7. PW(V.5) PDOXUSRS.NET File Problem ?

8. PDOXUSRS.NET file corruptions

9. pdoxusrs.net file

10. Closing the PdoxUsrs.Net file

11. *.LCK and PdoxUsrs.NET files after bomb-out

12. second pdoxusrs.net file


 
Powered by phpBB® Forum Software