2011-08-24 146 views
0

在我的應用程序中,我使用webbrowser控件。在窗口電話7中清除歷史記錄瀏覽器?

#region show adve.... 
     public void ShowAd(string link) 
     { 
      linkFromservices = "http://ads.diadiem.com/www/delivery/afr.php?refresh=10&zoneid=66&...="; 
      client = new WebClient(); 
      client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted); 
      client.DownloadStringAsync(new Uri(linkFromservices, UriKind.RelativeOrAbsolute)); 
     } 

     void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) 
     { 
      result = string.Empty; 

      try 
      { 
       result = e.Result; 

       if (!string.IsNullOrEmpty(result)) 
       { 
        result = AddScripttoHTML(result); 
        webBrowser.NavigateToString(result); 
       } 
      } 
      catch (Exception ex) { } 
      finally 
      { 
       result = string.Empty; 
       client.DownloadStringCompleted -= new DownloadStringCompletedEventHandler(client_DownloadStringCompleted); 
      } 
     } 
     #endregion 
在這個環節

「http://ads.diadiem.com/www/delivery/afr.php?refresh=10 & =了zoneid 66 & ......」 你可以看到refesh = 10。每隔10秒瀏覽器就會自動刷新並單獨更改當前的廣告隨機.....

但刷新內存從200KB增加到400KB。

如何釋放或清除窗口電話7中的歷史webbrowser?

謝謝大家!請幫我.......

+0

需要明確的是,在不增加內存的每次廣告刷新時200K-400K?它看起來不像Web瀏覽器歷史記錄的問題,但是看起來每次刷新都會在應用中使用更多的內存。 –

+0

您好Paul Annetts,網頁瀏覽器每次都會自動重置。網站使用Java腳本來刷新它。 – thongaduka

+0

目前尚不清楚問題是什麼 - 它是否會增加內存?瀏覽器的歷史? –

回答