2012-04-30 23 views
0

MonoTouch的5.2.11 EVAL版本将(检测出来)Monotouch.Dialog ImageLoader的

在任何图像,我试图加载我得到这个错误模拟器:

Error fetching picture for [url to image] to.... 
Problem with [url to image] System.Net.WebException: The request timed out 
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00046] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:824 
    at System.Net.HttpWebRequest.GetResponse() [0x0000e] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:836 
    at MonoTouch.Dialog.Utilities.ImageLoader.Download (System.Uri uri, System.String target) [0x00038] 

的[网址图]工作正常,我实际上可以在模拟器浏览器中输入url并加载..我已经下载了Monotouch.Dialog项目,并将请求超时时间增加到了100000,这似乎并没有太大的作用。

有什么建议吗?

回答

0

我得到这个错误,当我有一个基于一些JSON响应的嵌套对话框。有大约1000张照片,图像加载器试图加载它们。我认为这只是在点击时才被调用,而不是这种情况。看起来下载会让系统泛滥,请求太多。

我修复了这个问题,通过重用1个UIViewController来显示最后一个嵌套级别(它上面有照片)。