473,511 Members | 12,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3817
"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
7385
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
6395
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
2824
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
1811
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
5168
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
1784
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
8539
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
13957
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
4588
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
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.