Paul E. Schoen
2010-04-02 19:26:44 UTC
In my posts on 3/12/2010 I found a fix for the problem in Vista where the
NetFileDir PDOXUSRS.NET was not allowed to be written in the root C:\, so I
set the Session.NetFileDir to the default Application Data folder, and all
seemed fine. But two customers had problems when they installed on their XP
machines, and the error message was:
Network initialization failed
Path not found
File: C:\Documents and Settings\All U\pdoxusrs.net
Directory C:\Documents and Settings\All U
I added a debug line which showed the NetFileDir and it was:
C:\Documents And Settings\All Users\Application Data\Ortmaster
Just for grins and giggles I created the directory that was not found, and
it fixed the problem. The PDOXUSRS.NET file appeared in that folder. It
worked OK in Vista, where the path was:
C:\ProgramData\Ortmaster
The path name seems to be truncated somewhere. If I use the BDE
Administrator in the Control Panel, the
Configuration\Drivers\Native\Paradox\Net Dir is still C:\. I copied the full
path into the Net Dir and applied it. Then I renamed the "All U" folder to
"All". The problem remained with the same error message.
I am setting the Net Dir upon the FormCreate event of the form which has the
database components. I am not explicitly creating a Session, but I am using
the default Session which is created automatically. So I suspect that the
NetDir is needed prior to the form creation. Yet the error message does not
appear until I open the form with the database components, and by that time
the form has been created so the Net Dir should be set. I can fix this with
ugly workarounds, such as creating the rogue directory in the install
script, but I want to do it right.
Would it be possible to trap the error in a try..except construct on form
show? But then what could I do other than set the Net Dir to what is already
was set to on FormCreate?
BTW, this is D4 Pro, and I'm not sure I installed the latest updates for it
on this computer (which has Vista Business OS). My main XP machine died a
few weeks ago and I've been doing my development on my new machine. I'm sure
I had the same basic program running when I was using XP, although I think
that was before I needed to change the default NetDir. Perhaps I can detect
XP vs Vista and only change it for Vista? Is there an easy way to detect the
OS and make the change only for Vista (and probably also Win7). Any ideas
will be appreciated.
Thanks!
Paul
NetFileDir PDOXUSRS.NET was not allowed to be written in the root C:\, so I
set the Session.NetFileDir to the default Application Data folder, and all
seemed fine. But two customers had problems when they installed on their XP
machines, and the error message was:
Network initialization failed
Path not found
File: C:\Documents and Settings\All U\pdoxusrs.net
Directory C:\Documents and Settings\All U
I added a debug line which showed the NetFileDir and it was:
C:\Documents And Settings\All Users\Application Data\Ortmaster
Just for grins and giggles I created the directory that was not found, and
it fixed the problem. The PDOXUSRS.NET file appeared in that folder. It
worked OK in Vista, where the path was:
C:\ProgramData\Ortmaster
The path name seems to be truncated somewhere. If I use the BDE
Administrator in the Control Panel, the
Configuration\Drivers\Native\Paradox\Net Dir is still C:\. I copied the full
path into the Net Dir and applied it. Then I renamed the "All U" folder to
"All". The problem remained with the same error message.
I am setting the Net Dir upon the FormCreate event of the form which has the
database components. I am not explicitly creating a Session, but I am using
the default Session which is created automatically. So I suspect that the
NetDir is needed prior to the form creation. Yet the error message does not
appear until I open the form with the database components, and by that time
the form has been created so the Net Dir should be set. I can fix this with
ugly workarounds, such as creating the rogue directory in the install
script, but I want to do it right.
Would it be possible to trap the error in a try..except construct on form
show? But then what could I do other than set the Net Dir to what is already
was set to on FormCreate?
BTW, this is D4 Pro, and I'm not sure I installed the latest updates for it
on this computer (which has Vista Business OS). My main XP machine died a
few weeks ago and I've been doing my development on my new machine. I'm sure
I had the same basic program running when I was using XP, although I think
that was before I needed to change the default NetDir. Perhaps I can detect
XP vs Vista and only change it for Vista? Is there an easy way to detect the
OS and make the change only for Vista (and probably also Win7). Any ideas
will be appreciated.
Thanks!
Paul