473,324 Members | 2,456 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,324 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 3803
"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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.