Exception crashes app

Jan 31, 2014 at 9:15 AM
Hi,

I'm using the current version of the control with admob, pubcenter and adduplex set up on both a local and remote config file.

Sometimes on first load of my app an exception is thrown which I suspect is coming via adduplex however it's not getting caught in adrotator and subsequently crashes the app.

Is there some kind of OnError event that can be wired up to the adrotator control to allow this situation to be caught?
Coordinator
Jan 31, 2014 at 1:53 PM
We set exception logic around all the ad providers we use, just to be on the same side.

For AdDuplex, please ensure you have their latest control loaded.

If you run in debug mode, what exception is getting caught by the app, maybe that will help narrow it down.
Feb 1, 2014 at 6:13 PM
Thanks for the reply Darkside.

I've put some exception logging in the app and managed to catch it error with the following:
[Type]:[NullReferenceException]
[ExceptionMessage]:[Object reference not set to an instance of an object.]
[StackTrace]:[
   at AdDuplex.AdControl.OnNetworkManagerAdLoaded(Object sender, AdLoadedEventArgs e)
   at AdDuplex.Models.NetworkManager.OnAdLoaded(TextAdInfo newAd)
   at AdDuplex.Models.NetworkManager.<>c__DisplayClass2.<LoadNewAdCallback>b__0()]
[InnerException]:[none]
As I thought it's in relation to AdDuplex. I've checked the version and it's currently 2.8.0.7