WP7AdRotator在发布时毫无例外地崩溃

时间:2012-10-09 14:03:36

标签: windows-phone-7 adrotator

我需要一个针对xna的Ad-Rotator,并在codeplex上找到wp7adrotator

Silverlight示例效果很好,但是当我尝试运行XNA应用程序时,它只是在没有显示任何内容的情况下关闭。

如果我在init函数中删除以下代码:

                AdRotatorXNAComponent.Initialize(this);
                AdRotatorXNAComponent.Current.AdPosition = new Vector2(0, 720);
                AdRotatorXNAComponent.Current.DefaultHouseAdImage = Content.Load<Texture2D>(@"AdRotator");
                AdRotatorXNAComponent.Current.DefaultHouseAdClick += new AdRotatorXNAComponent.DefaultHouseAdClickEventHandler(Current_DefaultHouseAdClick);
                AdRotatorXNAComponent.Current.SlidingAdDirection = SlideDirection.Bottom;
                AdRotatorXNAComponent.Current.DefaultSettingsFileUri = "defaultAdSettings.xml";
                AdRotatorXNAComponent.Current.SettingsUrl = "http://adrotator.apphb.com/defaultAdSettingsXNANoLoc.xml";
                Components.Add(AdRotatorXNAComponent.Current);

效果很好。我尝试用try / catch包围它,但它没有命中: - /

0 个答案:

没有答案
相关问题