Solved

Visual FoxPro 9.0 SP2  Error writing to file "file" (Error 1105)

Posted on 2015-01-05
3
630 Views
Last Modified: 2015-01-08
I have a Windows Xp Pro Machine that is running MS Visual FoxPro 9.0 applications
These applications ran from a scheduled task that is handled by the task manager.
These apps access data bases on a network share but from time to time Fox Scheduler tries to write to one of the files and it errors out with this message

Visual FoxPro 9.0 SP2
Error writing to file "file" (Error 1105)
The operating system returned an error while Visual FoxPro was attempting to write to the specified file. Most often, this error occurs when attempting to write to a write-protected disk.
But this machine has access to the file and it work majority of the time just once in a while it will error out.
0
Comment
Question by:ahmad1467
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:Ganesh Kumar A
ID: 40532877
The operating system returned an error while Visual FoxPro was attempting to write to the specified file. Most often, this error occurs when attempting to write to a write-protected disk or the file might be used or diskspace issue or clean the temp files and try (C:\windows\temp and profile temp folder).

Errorcodes : http://msdn.microsoft.com/en-us/library/aa979346(v=vs.71).aspx

It appears like network share doesn't have read & write permission. Check the permission the issue will be resolved.
0
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 40533100
As this is only temporary a reason may be your task is locking itself out.
To which files do you write? DBFs via SQL or REPLACE? or txt files via FOPEN/FWRITE?

Any way, a file always can only be written to by one process at each time, that's deep in the OS and not only valid for DBFs, but any type of files. You can read shared, but never write shared, so the best thing to do is put write operations into try/catch and repeat unsuccessful writes after a random timeout (otherwise two processes using the same timeout might deadlock themselves in sync).

You may well have a branch of your code not closing a file and causing a long term lock, this or similar reasons should of course be found and eliminated.

Bye, Olaf.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 40533261
Error 1105 is low level OS error and appears namely on unstable network connections. The problem is in your network hardware (90%) or in some software which can prohibit the file access (e.g. some incompatible antivirus or backup software).

Any connection dropout during the write operation can cause this error. You may simulate it by disconnecting network cable during the write operation...

Neither permissions nor simultaneous data access can cause this error. These events are solved at higher level.

When the error 1105 appears your data may become inconsistent or even corrupted. Reindex and data integrity check is highly recommended after this error occurrence.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question