Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. All pipes intances are busy

All pipes intances are busy

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arif Liminto
    wrote on last edited by
    #1

    Hi I got a project which involves interprocess communication. I uses pipes because it's only happend in one machine. It seems everything should be perfect. However, When I try to connect The Client and The Server. I always have an Error number 231 ( All pipe instances are busy) when I try to create file in client side. Client --> Create File, Write File Server --> Create Named Pipes, Read File here is some of the code in my programs

    m_hPipeHandle = INVALID_HANDLE_VALUE;
    m_hPipeHandle = CreateFile(ISOCOMSPIPE,GENERIC_WRITE,FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

    if(m_hPipeHandle == INVALID_HANDLE_VALUE)
    {
    int iRet = GetLastError();
    printf("Error number %d",iRet);
    }

    closeHandle(m_hPipeHandle);

    Is there anything wrong in the attributes/ missing attributes when I want to create the file ? Thx

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups