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

  • Home
  • SEARCH
  • 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 7544499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:41:14+00:00 2026-05-30T08:41:14+00:00

I have two .net applications that run on the same machine. The first application

  • 0

I have two .net applications that run on the same machine.
The first application is the ‘Engine’. It builds images – image’s size is about 4M.
The second applications is the ‘Viewer’. It shows the images which the ‘Engine’ sends.
The engine sends images every 10-15 seconds.

My question is what is the bast way to pass the images from the engine to the viewer.
Currently, I’m using FileSystem for this. The Engine writes the image to file system folder and the viewer getting this file using FileSystemWatcher.

Is that approach ok? Is that reliable?

  • 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-30T08:41:15+00:00Added an answer on May 30, 2026 at 8:41 am

    There is number of good options:

    • Message Queue
    • Named Pipes (directly)
    • Memory mapped files
    • WCF on Named Pipes or MSMQ

    Any of those is more than fast enough so I would suggest easiest to implement.

    Message Queue (MSMQ) in my opinion is simplest to use, gives you object transfer (as opposed to streams) and gives you optional transport persistence (useful in case sender or receiver is not running). All this is true for WCF over MSMQ but WCF means more overhead, complexity and configuration involved and no additional (in this case) value.

    Send like this:

    MessageQueue queue = new MessageQueue(".\\private$\\ImagesQueue");
    Message msg = new Message
    {
        Formatter = new BinaryMessageFormatter(),
        Body = myImage,
        Label = "Image"
    };
    queue.Send(msg);
    

    Receive:

    MessageQueue queue = new MessageQueue(".\\private$\\ImagesQueue");
    msg = queue.Receive(TimeSpan.FromMilliseconds(100));
    if (msg != null)
    {
        msg.Formatter = new BinaryMessageFormatter();
        myImage = (MyImage)msg.Body;
    }
    

    Queue needs to be created before use. You can do that when your application starts

    Have this in your class:

    private const string queueName = ".\\private$\\ImagesQueue";
    

    And in application initialization/startup make sure you have your queue:

    if (!MessageQueue.Exists(queueName)
    {
        MessageQueue myQueue = MessageQueue.Create(queueName);
    }
    

    With this queue mechanism, Engine does not have to wait for the Viewer to complete. This would much improve perceived performance because you can generate next image (actually number of them) while previous one is still being viewed. Not so easy to achieve with memory mapped files.

    MSMQ is a standard Windows component but needs to be enabled in Windows Features.

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

Sidebar

Related Questions

I have two .NET applications that talk to each other over a named pipe.
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have application in VB.net that have two different form (Form1 and Form2). Now
i have two .net web application and they ara running on different domain same
Simple ASP.NET application. I have two drop-down controls. On the first-drop down I have
I have two web applications in ASP.NET which are quite the same (same business
I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
I have been experimenting with sending messages from two .NET Windows Forms applications using
I have two web applications and both are developed in ASP.NET. Now I want
I have basically two separate sites, a SharePoint collaboration site, and an ASP.Net application

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.