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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:03:37+00:00 2026-05-26T02:03:37+00:00

I am instantiating and sending multiple instances of HTTPService On a Mac, however, many

  • 0

I am instantiating and sending multiple instances of HTTPService
On a Mac, however, many of the calls fail with a 2032 error.

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       click="windowedapplication1_clickHandler(event)"
                       creationComplete="windowedapplication1_creationCompleteHandler(event)">

    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.events.FlexEvent;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;
            import mx.rpc.http.HTTPService;

            [Bindable]
            private var r:int=0;
            [Bindable]
            private var f:int=0;

            private var a:Array= ['url1', 'url2', 'url3', 'url4', 'url5'];

            private var sa:Array=[];
            protected function windowedapplication1_clickHandler(event:MouseEvent):void
            {
                for(var i:int=0; i<sa.length; i++) {
                    sa[i].send();
                }

            }

            protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
            {
                for(var i:int=0; i<100; i++) {
                    var random:int=Math.floor(Math.random() * a.length);
                    var s:HTTPService=new HTTPService();
                    s.addEventListener(ResultEvent.RESULT, sr);
                    s.addEventListener(FaultEvent.FAULT, sf);
                    s.resultFormat="text";
                    s.url=a[random];
                    sa.push(s);
                }
                //s.useProxy=true;
            }

            private function sf(e:FaultEvent):void {
                f++;
                t.text="MESSAGE: " + e.message + "HEADERS:" + e.headers + "FAULTCONTENT: " + e.fault.content 
                    + "ERROR: " + e.fault.errorID + "|" + e.fault.faultCode + "|" + e.fault.faultDetail + "|" + e.fault.faultString
                    + "FAULTMESSAGE:" + e.fault.message + "FAULRNAME:" + e.fault.name + "ROOTCAUSE:" + e.fault.rootCause
                    + "AT " + e.fault.getStackTrace();
            }

            private function sr(e:ResultEvent):void {
                r++;
            }

        ]]>
    </fx:Script>

    <fx:Declarations>

    </fx:Declarations>
    <s:Label x="10" y="19" text="Result {r}"/>
    <s:Label x="10" y="120" text="Fault {f}"/>
    <s:TextArea x="10" y="198" width="610" height="294" id="t"/>
</s:WindowedApplication>

It works as expected on PC (I get all 100 results as successful) but on a Mac, I get wuite a few that fail.
Why is this happening and how do I get around it?

  • 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-26T02:03:37+00:00Added an answer on May 26, 2026 at 2:03 am

    It seems Win7 and Mac OS X block very quick requests to different addressed.
    Adding a 1 second timeout works fine

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

Sidebar

Related Questions

We're seeing a crash when instantiating an instance of the System.Xml.Serialization.XmlSerializer class in a
I get the following error when instantiating a Django form with a the constructor
Which JSF 1.2 component is responsible for instantiating managed bean specified in faces-config.xml? I'd
Recently I've faced a question : How to avoid instantiating a Java class? However,
I am instantiating various objects based on an xml file. To create an object
When Instantiating a class, Windsor by default treats all public properties of the class
I am instantiating a class A (which I am importing from somebody else, so
I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the
I am successfully instantiating/automating Visual Studio using the following code: System.Type t = System.Type.GetTypeFromProgID(VisualStudio.DTE.9.0);
I have a strange phenomenon while continuously instantiating a com-wrapper and then letting the

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.