旋转时的Platform :: OutOfMemory ^ [英] Platform::OutOfMemory^ at rotations

查看:55
本文介绍了旋转时的Platform :: OutOfMemory ^的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi 。为什么它会给我Microsoft C ++异常:Platform :: OutOfMemoryException ^在内存位置0x0086D7F0。 HRESULT:当我旋转手机几次时,0x8007000E
? PS:我已按照本网站教程中的步骤进行轮换: 
http://www.catalinzima.com/2012/12/handling-orientation-in-a-windows-phone-8-game/

解决方案

内存不足异常是因为Microsoft限制了分配给各个应用程序的内存大小。但是当您旋转手机时,它需要以横向或纵向渲染所有对象,以便提高内存利用率。请限制
屏幕上的对象或降低其分辨率。如果使用图像,您可以使用低分辨率图像,确保它们不会失真。请参阅以下链接了解内存限制


http:// msdn.microsoft.com/en-us/library/windowsphone/develop/jj681682%28v=vs.105%29.aspx




Hi. Why does it give me Microsoft C++ exception: Platform::OutOfMemoryException ^ at memory location 0x0086D7F0. HRESULT:0x8007000E when I rotate the phone for a couple of times? PS: I've followed the steps from the tutorial from this website for rotations: http://www.catalinzima.com/2012/12/handling-orientation-in-a-windows-phone-8-game/

解决方案

The out of memory exception is because Microsoft has limited the size of memory allotted to individual apps. But when you are rotating your phone it needs to render all the objects in landscape or portrait so the memory utilization is shot up. Please limit the objects on the screen or reduce their resolution. if Images are used you can use low resolution images making sure that they are not distorted. refer the below link for memory limitations

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681682%28v=vs.105%29.aspx


这篇关于旋转时的Platform :: OutOfMemory ^的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆