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 7962807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:26:56+00:00 2026-06-04T05:26:56+00:00

I have a legacy application that I am trying to run under an Azure

  • 0

I have a legacy application that I am trying to run under an Azure worker. The application uses a fairly common pattern to launch a child process by creating an anonymous pipe, redirecting stdout to the pipe, spawning a child process, then using the pipe to communicate.

To get this to run under Azure, I make a P/Invoke call to the dll that starts this whole process.

All of this works fine outside of Azure, but fails even when running under the emulator.

When running under Azure, the procs are unable to communicate over the pipe. Specifically, the call to read on the handle to the pipe by the parent is failing (timeout).

  • 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-06-04T05:26:58+00:00Added an answer on June 4, 2026 at 5:26 am

    I finally figured out that the problem was because the legacy code was duplicating the stdout handle to pass to the child process.

    Running under Azure, GetStdHandle for STDOUT was returning 0x0. This means basically, “No error, but you don’t have a STDOUT”. Apparently, you need to check for 0x0 AND INVALID_HANDLE.

    Creating the handles, setting them on the STARTUPINFO before starting the child instead of duplicating the existing ones fixed everything up.

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

Sidebar

Related Questions

I have a legacy application that I'm trying to port to Java EE. Presently
I have a legacy application that I inherited that passes a lot of XML
We have an legacy application that accesses the registry. Because it is a 32bit
I have some data (produced by a legacy application) that I know is invalid
I have a legacy Windows server service and (spawned) application that works fine in
Very strange question but I have some legacy code that interacts with another application
Let's say I have a legacy application that, for various reasons, previous developers decided
I have a legacy VB6 application that was built using MSDE. As many client's
I have an ASP.NET WebForms application that I'm trying to switch to MVC for
I have a legacy C++-based application that timestamps incoming network traffic using the CRT

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.