FoxPro 有时在局域网中找不到文件
有时,可视化 FoxPro 应用程序无法在 FileShare 中找到文件,但文件却在那里。
例如,当在网络共享上的现有文件上循环检查 File() 时,大约 5% 的尝试找不到该文件。
这适用于大多数机器,但有时不起作用。在当前场景中,我有一个 Windows Server 2K8 作为文件服务器(也许是 SMB2 问题?)
Sometimes a visual FoxPro App doesn't find files in a FileShare, which are there.
for example when checking in a loop File() on a existing file on a Network share about 5% of the tries don't find the file.
This works on most machines but sometimes it doesn't work. In the curren scenario I've a Windows Server 2K8 as file server (perhaps a SMB2 issue?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会将您的 2K8 服务器修补到 SP1(以及所有 Windows 7 客户端),这将解决任何 SMB2 问题。不过,这些问题与 CDX 索引文件损坏有关。
这也可能是由于 SMB2 使用的缓存造成的,这可能会产生“找不到文件”错误。涉及的客户端注册表设置有:
Alaska Software 上有对此进行的讨论< /a> 网站,以及一个有用的 MSI 安装程序,可以在每个工作站上运行以调整设置。该公司生产了一款名为 Xbase++ 的产品,但我猜想它在低级文件 IO 和锁定方面与 Visual FoxPro 足够接近。
I would patch your 2K8 server to SP1 (and any Windows 7 clients too), this will take care of any SMB2 issues. Those issues were around CDX index file corruption, though.
It's also possible that this is due to the caching that SMB2 uses, which can produce 'File Not Found' errors. The client registry settings involved are:
There is a discussion regarding this on Alaska Software's website, and a useful MSI installer which can be run per workstation to adjust the settings. This company produces a product called Xbase++ but I would guess it is close enough to Visual FoxPro in terms of low-level file IO and locking.
如果这是福克斯或您的网络的问题,则不是积极的。追溯到很久以前,我有一个客户也遇到过类似的问题。将 Foxpro 排除在外,只使用 Windows 资源管理器,它就会挂起一会儿。结果他们的网卡被设置为节能模式,并且基本上会由于不活动而超时/关闭。网络驱动器共享显然将被释放。在网卡重新连接并再次建立之前,他们遇到了问题。通过更改网卡永远不会进入节能模式,问题就消失了。
Not positive if its an issue of Fox, or your network. Going way back in time, I had a client that had problems somewhat similar. Took Foxpro out of the equation and just used Windows Explorer and it would hang for a moment. It ended up that their network cards were set to energy saving mode and would basically time-out / shut down due to inactivity. The network drive share would apparently be released. Until the network card would re-connect and get established again, they had issues. By changing so the network card NEVER went into energy save mode, problem went away for them.
是的。我在各种不同的服务器上部署了不同版本的fox pro,以及各种版本的Windows服务器,但从未遇到过所描述的问题。
也许您可以尝试使用不同的编程规则(.Net、access、Ruby ....等)进行类似的测试
,只是出于兴趣而发布您的测试循环?
Yes. I have versions of fox pro deployed on various different servers, with various versions of windows server and never experienced an issue as described.
Maybe you could try a similar test using a different programming discipline, .Net , access, Ruby ...., etc
Post you test loop, just out of interest ?