[MonoTouch] Too weird for words

Miguel de Icaza miguel at xamarin.com
Thu Oct 27 21:53:34 EDT 2011


>
> I didn’t believe it, but I have seen a video of it as proof…****
>
> ** **
>
> I have some code that sends a TCP-IP message. It pops a UIAlertView with no
> buttons and an activity indicator to show that something is happening. 99%
> of the time, it’s gone in 1 to 5 seconds, but sometimes it takes longer – a
> lot longer.****
>
> ** **
>
> What’s on the video is apparently reproducible, although to produce a
> sample will be night on impossible – but if it takes ages (like 1 or more
> minutes) they just drop the phone onto the desk (from about 6” to 12” high)
> and magically it hides the indicator and the app carries on perfectly. Every
> time they do it regardless of waiting 30 seconds or 3 minutes, it **ALWAYS
> ** works the instant they drop it.
>

Likely the accelerometer detects the motion and posts a message to your run
loop that says "Device is being shaken" (you have seen this in text fields,
when you shake you get a "Undo Typing" button).

Probably the message posted to the main loop is unblocking whatever pending
operation is queued, even if nothing happens on the screen.

Hard to diagnose without looking at the code.

Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111027/4022cc85/attachment.html 


More information about the MonoTouch mailing list