2012-04-30 24 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來顯示最後一個嵌套級別(它上面有照片)。