1 Reply Latest reply on Dec 17, 2009 5:22 PM by Steveorevo

    D11 netDone on Mac 10.6 hangs every other getNetText operation

    Steveorevo Level 1

      Grrr... yet another one to add to the books

      I'm using a timeout object and on Windows this works fine. On every timeout event (every 5 seconds or so) I do a netID = getNetText("http://localhost"), on subsequent timeouts I check netID <> 0 and do a netDone(netID)... on Mac it always returns zero for every other operation. How frustrating is that?

       

      Here are the handlers:

      on prepareMovie

        global netID

        netID = 0

        x = new timeout("myTimeout",5000,#myTimeout)

      end

       

      on myTimeout
        global netID
        if netID = 0 then
          netID = getNetText("http://localhost/")
        else
          if netDone(netID)=1 and netError(netID) = "OK" Then
           alert("I'm done")

           netID = 0
          else
            if netError(netID) > 0 then
              alert("netError " + String(netError(netID)))
            end if
          end if
        end if
      end