Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7411519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:23:57+00:00 2026-05-29T06:23:57+00:00

I have a C# program which will have multiple instances that need to communicate

  • 0

I have a C# program which will have multiple instances that need to communicate with each other, executing commands and sending data back and forth. Right now, this is accomplished using WM_COPYDATA, which is quite cumbersome. I would like to upgrade this to a WCF system using NetNamedPipeBindings. However, no matter what settings I try, I cannot get reentrant duplex communication working.

This would be a normal WCF call:

client calls proxy.foo
   server executes foo
   server finishes foo
client returns from proxy.foo

And this is what I want:

client calls proxy.foo
    server executes foo
    server calls callback.bar
        client executes bar
        client calls proxy.baz
            server executes baz
            server finishes baz
        client returns from proxy.baz
        client finishes bar
    server returns from callback.bar
    server finishes foo
client returns from proxy.foo

Critically, I want the client thread that calls proxy.foo to be the SAME THREAD that calls proxy.baz. For Windows Messages, this is par for the course. But no matter what settings I try, I just can’t get this pattern working through WCF. Is it even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:23:58+00:00Added an answer on May 29, 2026 at 6:23 am

    Unless you make the calls async and manually handle the interleaving and (probably) marshaling to the right thread, I can not see how it is possible. After all, the client (thread) is calling the server and is blocked until the server returns with a response. So the call back to client will deadlock the code, as the client thread is already blocked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Making a simple program which will generate a multiple choice form. I have an
How to write a java program which will tell me whether I have internet
I have a C++ program which, during execution, will allocate about 3-8Gb of memory
I'm making a task-based program that needs to have plugins. Tasks need to have
Basically, I have a program which will be launched more than once. So, there
I have to develop one program that consists data manipulation (retrieve data, update data
I have an AS3 program that calls a function multiple times. The function must
In my program I have multiple instances of a specific class Tracer (A1,B2,C3 etc).
I have a program which stores plugins in multiple directories, like so: root/ core/bin/
I have a program (call it x, written in c++) which will run using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.