Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is error codes error 32? 1

Status
Not open for further replies.

Orion7

Programmer
Jul 7, 1999
17
US
I am running into a file error 32 after i do a fopen in my code. I have not found any documentation that covers this error. I found the definition in the Errno.h file. It is :<br>
<br>
#define EPIPE 32<br>
<br>
Here is part of my code:<br>
if( (stream = fopen( cfile, &quot;r+b&quot; )) != NULL )<br>
{<br>
numread = 1;<br>
if(feof(stream))<br>
{<br>
strcpy(lsuccess,&quot;Feofrr&quot;);<br>
}<br>
if( ferror( stream ) ) <br>
{ <br>
lstats(ferror(stream),lsuccess);//error handler returns error 32 in lsuccess pointer<br>
}<br>
....do my commands<br>
}<br>
Note: I am running Microsoft Visual c++ 1.52 on a Dell Pentium 266. I am coding in straight c. I can NOT use c++ for this application.<br>
<br>
I am limited to these file functions<br>
<br>
clearerr, fgets, fread, fclose, fopen, fscanf, feof,fprintf,fseek,ferrror,fputs,ftell, fgetc, fwrite<br>
<br>
<br>

 
I have figured it out, it is Broken Pipe. I don't know much about that error though. Any input would be good.
 
<br>
Hi,<br>
The problem is ERROR_SHARING_VIOLATION . i.e.,&quot;The process cannot access the file because it is being used by another process.&quot; Probably either the file is opened by some other program or you've already opened it . <br>
Does it answer your question ?<br>
<br>
Thanx<br>
Siddhartha Singh<br>
<A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top