Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

network exist function & UIEIOError

$
0
0

Well, just when I thought I was out of the woods, I have Ini_WriteToFile errors again.  My app runs in a network environment.  You can read about my first run-in here.  That time, it was all about the instrument driver's temp file, and the other client computers trying to overwrite each others' file.  The error then was UIETooManyFilesOpen.

 

And now, all of a sudden, it's UIEIOError (Input/Output error).  Why?  What changed?  Not much on the topology end.  I've added a bunch more client machines to this same network, none of which have access to the destination directory that my INI driver is trying to write to.  And even more troubling, when we are getting these errors, it is bringing down the entire application.  I have the ConfigCVILogging.exe tool running on all my client machines to try to catch any other errors, but the most I see are some TCP/IP things.

 

So in the interest of fixing this soon, I'm entertaining a different writing scheme. Now I want to copy the file from the server, do all the editing and writing locally, then at the end copy it back to the server with a CopyFile.  This way, I have the best possible scenario for successful INI writing, and minimize the amount of network access by several orders of magnitudes.

 

The critical step in my app is to gaurantee that locally I have the most recent copy of the server's INI.  So at the beginning of this process I do this:
 

serverStatus = FileExists(serverFileName, 0);

FileExists gives either True, False, or (presumably) FmtIOErrType.  In a test, I yanked my ethernet cord and attempted the function call but simply got a 0, because the mapped network drive didn't resolve.  This is a problem.

 

Is there such thing as a PathExists function?  I need to know, at the time of reading the latest INI file and the time of writing my local copy back out, that the network connection is good.  I saw this post, but it doesn't look quite what I'm after.


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>