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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:42:13+00:00 2026-05-20T15:42:13+00:00

I have a .NET console app that reads info from a USB stick and

  • 0

I have a .NET console app that reads info from a USB stick and spits it out. I have an AIR app that listens to it and processes the information.

My problem is that sometimes my air app doesn’t seem to process some of the messages, even though the log shows that they were sent from the .net console app.

Here’s what I’m doing.

.NET

   Trace.WriteLine("heart," & heartRate & "," & GetTimeStamp() & ",")

I have a bunch of different listeners that spit out information. I’m just sending them through with commas separating the values. I added a comma to the end just to make sure I would spit the array if two lines were picked up at once on the air side (can that even happen?)

AIR

public function ProcessConsoleData(data:String):void{
        var tempArray:Array = data.split(",");
        var pointUpdated:Boolean = false;

        if (tempArray[0] == ("heart")){
            if (_dataModel.DeviceHeartRate.IsDeviceAvailable != true){
                _dataModel.DeviceHeartRate.IsDeviceAvailable = true;
            }

            _dataModel.DeviceHeartRate.HeartRate = int(tempArray[1]);
            _dataModel.DeviceHeartRate.LastUpdate = tempArray[2] as Date;

        }

The process console data function continues like that with about 25 else if statments with different values for tempArray[0] (Yes I know the ‘right’ thing to do is use a case statement but I like it with else ifs).

Data comes at the app pretty fast. Sometimes just 100ms or maybe less (haven’t done any benchmarks). Sometimes the air app won’t process the data that’s sent. I don’t know why and it’s hard to debug.

Does anyone have a better way to maintain message fidelity from .NET to AIR? Maybe someone can see a hole in my logic?

Thanks.

-Nate

  • 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-20T15:42:14+00:00Added an answer on May 20, 2026 at 3:42 pm

    Which method do you use? Two apps can be connected through local network, but there is simpler way. AIR can run console app itself with NativeProcess and communicate with it via stdin|stdout. This makes console application child process of AIR app (AIR cannot connect to running console app this way).

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

Sidebar

Related Questions

I have a .net/ c# console app with a DataTable that I populated from
We have a .NET console app that has many foreground threads. If we kill
I have a .net app that needs to spawn a console process (a java
I have a .NET 4.0 console application running on a production server. The app
Have simple C# console app which imports text data into SQL. It takes around
I have tried to deploy a WebORB .NET C# ASP.NET (C#.NET) application, but I
I am debugging an application that I ported from Windows, to *nix, a little
I have an ASP.NET MVC web application which is hosted by an external provider,
I have the following VBScript: Dim strFile, strXPath, strNewText, xmlDoc, xmlNodes, xmlNode strFile =
WCF newbie here... I'm trying to self-host a WCF service using NetTcpBinding. Based on

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.