简体   繁体   English

SharpDx工具包(DirectX)游戏中的黑屏

[英]Black screen in a SharpDx toolkit (DirectX) game

I'm writing a SharpDx(directX) Windows Phone 8 game where everything worked until now. 我正在写一个SharpDx(directX)Windows Phone 8游戏,到目前为止一切正常。 When I changed the size of the DrawingSurface, the phone screen during debugging was only black. 当我更改DrawingSurface的大小时,调试期间的电话屏幕仅为黑色。 Immediately I have everything undone and uninstalled the app, then the screen was still black. 立即我撤消了所有内容并卸载了该应用程序,然后屏幕仍然是黑色的。 Now I have checked with breakpoints where the program stops working, at the end came out that, the phone every line passes through to the line 现在,我已经检查了该程序停止工作的断点,最后发现,每条电话都经过电话

TouchCollection touchCollection = TouchPanel.GetState(); .

After that nothing happens, there is also no warning or anything. 在那之后什么都没有发生,也就没有警告或任何东西。 However, when I start the app without debugging, I can easily operate the app. 但是,当我在不调试的情况下启动应用程序时,我可以轻松地操作该应用程序。

Has anyone an idea? 有人知道吗?

Here is a Screenshot: 这是屏幕截图:

这是屏幕截图![在此处输入图片描述 ![]] 1 ![]] 1

I have now found the solution to my problem. 我现在找到了解决我问题的方法。

Solution(Very simple): 解决方案(非常简单):

The DrawingSurface doesn't work because an Microsoft Advertising SDK has disturbed it. DrawingSurface无法正常工作,因为Microsoft Advertising SDK干扰了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM