CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    Gods own country, India
    Posts
    248

    Named Pipes, instance busy error

    Hi gurus.

    i'm trying to use a named pipe instead of a file in a c# app:
    the c# app is expected to act as a client. and i have a c++ app running as server.

    the c# app original expected a file name to read data, which was currently replaced by a pipe as in
    Code:
     FilterGraph = new FilgraphManager();
                    try
                    {
                        m_FilterGraph .RenderFile( PIPE_NAME );
                    }
    (this is a directshow app to play back avi file, do you expect this to work ?)

    This function throws "all pipe instances are busy".
    Is there any workarounds, help..

    thanks in advance

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: Named Pipes, instance busy error

    I think you shall use NamedPipeClientStream created over the PIPE_NAME, but I don't know how to pass it to RenderFile.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  3. #3
    Join Date
    Dec 2003
    Location
    Gods own country, India
    Posts
    248

    Re: Named Pipes, instance busy error

    Ok thanks, i'l have a look at it, and possibly return

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured