Windows Iot Core在Raspberry Pi3上挂起 [英] Windows Iot Core Hang up on Raspberry Pi3

查看:71
本文介绍了Windows Iot Core在Raspberry Pi3上挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在我的UWP应用程序上遇到问题,该应用程序运行在Raspberry Pi 3 Model B上的Windows Iot Core Insider Preview(内部版本号:17030)上,I在我的应用程序中连续播放声音,一段时间后操作系统将挂起,Raspberry Pi不会重启,直到我实际上
重新启动它。

I faced a problem with my UWP app which runs on Windows Iot Core Insider Preview (Build Number : 17030) on Raspberry Pi 3 Model B, I play a sound in my application continuously, after a while the OS will hang up and Raspberry Pi dose not reboot till I physically reboot it.

一般情况下,哪种情况使Windows Iot核心挂断了吗?

In general case, which situation make Windows Iot core hangs up?

推荐答案

我在Windows RT应用程序中遇到了类似问题几年之前必须不断播放音乐。检查内存泄漏。登录失败设备的设备门户,进入流程>当你的应用程序运行直到它挂起时,性能和内存持续上升
。然后重新启动并再次尝试此测试,但在应用程序挂起之前停止应用程序并查看内存使用量是否会下降。像这样的挂起是内存泄漏。通过更改代码来使用'using'关键字来解决内存泄漏问题,并且可以确保自定义类使用dispose模式和IDisposable接口正确处理其资源和自身。如果在运行应用程序时内存使用率上升但在停止应用程序时没有降低内存,那么
那么内置到windows或您应用程序的某个媒体基础winmd中的媒体基础管道有问题图书馆(如果您已经编写了客户媒体基础代码)。

I had a similar problem with a Windows RT app several years ago that had to play music continuously. Check for a memory leak. Log in to the device portal of the device that is failing and go to Processes > Performance and watch for memory rising continuously while your app runs until it hangs. Then reboot and try this test again but stop the app before it hangs and see if the memory usage drops back down. A hang like this is a memory leak. Address a memory leak by changing your code to use 'using' keywords where possible and make sure your custom classes are properly disposing their resources and themselves using the dispose pattern and IDisposable interface. If the memory usage goes up while you are running the app but doesn't drop back down when you stop the app, then there is something wrong with the media foundation pipeline built into windows or one of your app's media foundation winmd libraries (if you have written customer media foundation code).


这篇关于Windows Iot Core在Raspberry Pi3上挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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