Irv,
Indeed, I do have something very similar to that. Here's a snippet:
Again -- my problem only occurs on the MacOS side of things. Everything is
fine on the PC side.
on exitFrame
if not(voidP(gNetID)) then
if (netDone(gNetID) = TRUE) then
serverString = netTextResult()
parsePacket(serverString)
end if
end if
gNetID = void
go the frame
end
---
Michael C. Hanson
Quicksilver Software, INC.
mailto:[EMAIL PROTECTED]
http://www.quicksilver.com
----- Original Message -----
From: "Irv Kalb" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 9:10 PM
Subject: Re: <lingo-l> NetDone - MacOS
> The real question is how are you waiting in your exitFrame handler?
> For example, if you do something like this:
>
> property pNetID
>
> on beginSprite me
> pNetID = getNetText( ....)
> end
>
> on exitFrame
> repeat while TRUE
> if netDone(pNetID) then
> exit repeat
> end if
> end repeat
> end.
>
> Then the net operation never gets time to execute and you will be
> stuck in this loop exactly as you describe.
>
> If this is the case, you can recode it to something like this:
>
> property pNetID
>
> on beginSprite me
> pNetID = getNetText( ....)
> end
>
> on exitFrame
> if netDone(pNetID) then
> go to the frame + 1
> else
> go to the frame
> end if
> end
>
> This will give Director time to do the getNetText operation in
> between exitFrame calls.
>
> Irv
>
> At 5:00 PM -0700 4/9/01, Michael C. Hanson wrote:
> >Hey There,
> >
> >I'm observing some strange network performance on an app I'm
> >authoring. Hopefully, someone could shed some light on this issue
> >for me -- because -- I'm stumped.
> >
> >I'm using getNetText() to send some data to a custom cgi server that
> >resides on a network server else where. On exitFrame I wait for
> >netDone() to be true and then process the string of data that the
> >custom cgi server sends back to me.
> >
> >The problem is -- under MacOS netDone() never becomes true. It
> >appears that Director has sent the getNetText() request, but after
> >that something is blocking the return data from the server. If I
> >stop Director, the network transaction completes itself, but of
> >course -- who cares since the app isn't running anymore.
> >
> --
>
> Lingo / Director / Shockwave development for all occasions.
>
> (Home-made Lingo cooked up fresh every day just for you.)
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]