Thanks Dino, that's definitely much cleaner, but is still doing the same
thing. 

This seems like a problem with nested async event handling. To give a bit
more context to the problem, the app that I am working on is doing the
following:

Scan barcode, on scan event, show UIActivityIndicator, send http request for
barcode lookup asynchronously, on completion of async http request hide
UIActivityIndicator.

It currently hangs on the hiding of UIActivityIndicator 100% of the time.
This seems like a pretty bad problem as I don't know of a workaround and it
is causing the app to completely hang. Not sure if this is related to the
problem, but I see this in the organizer at about the time it hangs:

unknown com.apple.SpringBoard[26] <Notice>: CoreAnimation: timed out fence
2f893

Although I just repeated it but set the breakpoint on the InvokeOnMainThread
and stepped over it, but did not see anything in the organizer.

Dennis




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/InvokeOnMainThread-hanging-tp4657446p4657449.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to