Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2005

Tip: Looking for answers? Try searching our database.

Overlapped I/O operation is in progress

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
man-ab - 10 Feb 2005 19:39 GMT
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


William DePalo [MVP VC++] - 11 Feb 2005 03:51 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.