Spot the Fail pt.1

Here we speak about Code and Design.
Post Reply
User avatar
nemerle
Posts: 397
Joined: Thu Jan 10, 2013 3:40 pm

Spot the Fail pt.1

Post by nemerle » Tue Mar 19, 2013 9:21 pm

Spot the problem with the following client-side code:
http://redmine.nemerle.eu/projects/segs ... estProcess




In totally related news:
Image
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

User avatar
IronMonkey
Posts: 29
Joined: Thu Mar 14, 2013 12:44 am

Re: Spot the Fail pt.1

Post by IronMonkey » Tue Mar 19, 2013 10:09 pm

looks at code .... looks some more .... :? .... yeeeah, I'm going to need a hint.
In memory of Techno Mars (Fire/B.A. Tanker) Dec 2004 - Dec 2012

User avatar
nemerle
Posts: 397
Joined: Thu Jan 10, 2013 3:40 pm

Re: Spot the Fail pt.1

Post by nemerle » Tue Mar 19, 2013 10:10 pm

Hint... can do :)

clientcomm_SceneRequest() is called first :)
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

User avatar
IronMonkey
Posts: 29
Joined: Thu Mar 14, 2013 12:44 am

Re: Spot the Fail pt.1

Post by IronMonkey » Tue Mar 19, 2013 10:15 pm

it calls waitForPacket_OrFail twice and one of the calls is getting stuck in the while loop?
In memory of Techno Mars (Fire/B.A. Tanker) Dec 2004 - Dec 2012

User avatar
nemerle
Posts: 397
Joined: Thu Jan 10, 2013 3:40 pm

Re: Spot the Fail pt.1

Post by nemerle » Tue Mar 19, 2013 10:24 pm

waitForPacket_OrFail will process all incoming messages until the one with given Type is received, or a timeout/error occurs
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests