SharpDx工具包(DirectX)游戏中的黑屏(Black screen in a SharpDx toolkit (DirectX) game)

编程入门 行业动态 更新时间:2024-10-28 18:26:52
SharpDx工具包(DirectX)游戏中的黑屏(Black screen in a SharpDx toolkit (DirectX) game)

我正在写一个SharpDx(directX)Windows Phone 8游戏,到目前为止一切正常。 当我改变DrawingSurface的大小时,调试期间的手机屏幕只是黑色。 我立刻撤消了所有内容并卸载了应用程序,然后屏幕仍然是黑色的。 现在我已经检查了程序停止工作的断点,最后出现了,电话每一行都通过线路

TouchCollection touchCollection = TouchPanel.GetState(); 。

在那之后没有任何事情发生,也没有任何警告或任何事情。 但是,当我在没有调试的情况下启动应用程序时,我可以轻松操作应用程序。

有人有想法吗?

这是一个截图:

![]] 1

I'm writing a SharpDx(directX) Windows Phone 8 game where everything worked until now. When I changed the size of the DrawingSurface, the phone screen during debugging was only black. 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

最满意答案

我现在找到了解决问题的方法。

解决方案(非常简单):

DrawingSurface不起作用,因为Microsoft Advertising SDK已经扰乱了它。

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.

更多推荐

本文发布于:2023-07-15 21:49:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119275.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工具包   黑屏   游戏中   DirectX   SharpDx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!