Wp8 App Crashed for Out of memory!

111 views
Skip to first unread message

Mine KANDİL

unread,
Sep 5, 2014, 4:39:11 PM9/5/14
to google-adm...@googlegroups.com
I am use admob for wp8, i have 2 banner and 1 InterstitialAd unit on same page, app use much memory(about 100mb for start), when i navigate other page and turn back app gettin slower and crash for out of memory:S please help me.
Check this video: http://www.youtube.com/watch?v=qt_XABGyDaE

I am use latest sdk,6.5.13.
My ad unit codes:

public MainPage()
       
{
           
InitializeComponent();
            tamekranreklam
();            
       
}
       
public void tamekranreklam()
       
{

            interstitialAd
= new InterstitialAd("ca-app-pub-955142777*****/******1813");
           
AdRequest adRequest = new AdRequest();
            interstitialAd
.ReceivedAd += OnAdReceived;
            interstitialAd
.ReceivedAd += interstitialAd_ReceivedAd;
            interstitialAd
.FailedToReceiveAd += interstitialAd_FailedToReceiveAd;
            interstitialAd
.DismissingOverlay += interstitialAd_DismissingOverlay;
            interstitialAd
.LoadAd(adRequest);          
           
       
}
void interstitialAd_DismissingOverlay(object sender, AdEventArgs e)
       
{
           
Debug.WriteLine("Dismissing interstitial.");
       
}
       
void interstitialAd_FailedToReceiveAd(object sender, AdErrorEventArgs e)
       
{
           
Debug.WriteLine("Failed to receive interstitial with error " + e.ErrorCode);
       
}

       
void interstitialAd_ReceivedAd(object sender, AdEventArgs e)
       
{
           
System.Diagnostics.Debug.WriteLine("Ad received successfully");
            interstitialAd
.ShowAd();
       
}
private void OnAdReceived(object sender, AdEventArgs e)
       
{            
           
System.Diagnostics.Debug.WriteLine("Ad received successfully");            
       
}
 
private void OnFailedToReceiveAd(object sender, AdErrorEventArgs errorCode)
       
{
           
Debug.WriteLine("Failed to receive ad with error " + errorCode.ErrorCode);
       
}

 
private void PanoramaItem_Loaded(object sender, RoutedEventArgs e)
       
{
AdView haberreklam = new AdView
               
{
                   
Format = AdFormats.Banner,
                   
AdUnitID = "ca-app-pub-******70579242/*****6619"
               
};
               
AdView sinemareklam = new AdView
               
{
                   
Format = AdFormats.Banner,
                   
AdUnitID = "ca-app-pub-*******70579242/*****9816"
               
};
                haberreklam
.ReceivedAd += OnAdReceived;
                haberreklam
.FailedToReceiveAd += OnFailedToReceiveAd;
//habergrd is gridname
                habergrd
.Children.Add(haberreklam);
                haberreklam
.Margin = new Thickness(0, 255, 0, 0);
                haberreklam
.VerticalAlignment = VerticalAlignment.Top;
               
AdRequest haberreklamreq = new AdRequest();
               
                haberreklam
.LoadAd(haberreklamreq);                
                sinemareklam
.ReceivedAd += OnAdReceived;
                sinemareklam
.FailedToReceiveAd += OnFailedToReceiveAd;
//sinemagrd is gridname
                sinemagr
.Children.Add(sinemareklam);
                sinemareklam
.Margin = new Thickness(0, 260, -60, 0);
                sinemareklam
.VerticalAlignment = VerticalAlignment.Top;
               
AdRequest sinemareklamreq = new AdRequest();
                sinemareklam
.LoadAd(sinemareklamreq);

       
}
 


Jacek

unread,
Sep 30, 2014, 3:22:13 AM9/30/14
to google-adm...@googlegroups.com
Same here. Version 6.5.13.0 is leaking :/ I am getting memory leak (+20mb) every page load with the Ad. 

I tried XAML and code-behind init and both are causing problems. So far I still don't know how to hack it.

Kak

unread,
Oct 23, 2014, 10:19:48 AM10/23/14
to google-adm...@googlegroups.com

same problem here, too.

As banners are progressively degrading my game's performance every new ad is shown, I tried to use intersticials, just to find that they're as bad as banners.

It's so bad that sometimes I think there's no way google could release such terrible code without even testing, so so bad and without updating it that maybe they're doing that on purpose. But then I say... nah! Just your imagination :)


El dimarts 30 de setembre de 2014 9:22:13 UTC+2, Jacek va escriure:
Reply all
Reply to author
Forward
0 new messages