473,385 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Overlapped I/O operation is in progress


Hello

In a W2000 server, we have the message:

"Overlapped I/O operation is in progress. (997)"

We are using SLNet telnet server, with PIPE. The application is VC++.
The code to inicialize the PIPE is:

char PipeName[256];
char *EnvPipeName;
char Temp[256];
int PipeHandle;
int BytesRead;
FILE *f;

void IM_IniciaTerminal()
{
char Msg[50];
char FileName[256];

EnvPipeName = getenv ("PIPENAME");
if (EnvPipeName){
sprintf (PipeName, "\\\\.\\PIPE\\%s", EnvPipeName);
PipeHandle = open (PipeName, _O_WRONLY);
if (PipeHandle == -1) {
printf("Cannot open pipe");
exit (-1);
}
}
else {
printf("Environment variable error");
exit(-1);
}
sprintf(FileName,"LOGTANT.DAT");
f=fopen(FileName,"w");
sprintf(Msg,"PipeName %s",PipeName);
IM_Debug(Msg);

// Standard Handles i/o
hIn=GetStdHandle(STD_INPUT_HANDLE);
hOut=GetStdHandle(STD_OUTPUT_HANDLE);
// Cleans events of keyboard
while (KbHit())
GetKey();
}

void IM_Debug(char *Str)
{
fprintf(f,"%s\n",Str);
fflush(f);
}

My english is very limited, but if you need something more ...

Thank you very much

--
man-ab
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
1 3811
"man-ab" <ma***********@mail.codecomments.com> wrote in message
news:ma***********@mail.codecomments.com...
In a W2000 server, we have the message:

"Overlapped I/O operation is in progress. (997)"


I see some code but I don't see the place where I expected to see the
thread's error code returned with GetLastError(). So, where does the error
occur?

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Michelle Kinsey-Clinton | last post by:
Hello, I am writing an ASP app which is giving me some very frustrating errors. They appear intermittently, no real pattern to them, and often go away if you reload, or back up a few pages and...
3
by: AmyAdmin | last post by:
I am running windows 2000 with IIS 5.0 and I have ASP and .NET apps running on that server, and I've been getting the error message in my event viewer: DCom got error "Overlapped I/O operation is...
1
by: Lewap | last post by:
Hi! I have a problem: Function CreateNamedPipe (a piece of source below) called in a NT service I get an error 997 - Overlapped I/O operation is in progress. When I run the same code as...
1
by: donna rigas | last post by:
Hi - I'm using overlapped i/o on Windows 98 and on XP and am getting different results. Here's the code snippet: // read the command id and the message length BOOL rc;...
4
by: Afterburn | last post by:
Hi, Has anyone ever experienced this error occuring when trying to call AddPrinterConnection() from VC6. This is a microsoft defined method call. I have been able to reproduce it on a windows200...
0
by: bike_mike | last post by:
I have written a service in VB.NET which goes out and periodically reboots servers on our network based on a set schedule. On occasion, the API throws this error: Overlapped I/O operation is in...
1
by: dvestal | last post by:
I'm trying to use Overlapped I/O from C#, and utterly failing. I've tried to boil down my code to as simple an example as possible, in hopes that you people can point to where I'm going wrong. ...
4
by: Eric Renken | last post by:
I am trying to do an Overlapped ReadFile on a HID device and it just isn't working for me. The WaitForSingleObject keeps giving me an error "The system cannot find the file specified." This...
7
by: =?Utf-8?B?TmljayBCdXJraXR0?= | last post by:
Hi. I have a C# app that uses named pipes via InteropServices. I have no problems running on a 32-bit machine, or when targeting x86 architecture, but it fails on a 64-bit machine when...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.