[英]Motorola MC65 - Windows Mobile 6.5 kills my app after resuming
My MC65 Windows Mobile 6.5 device kills my .NET CF 3.5 app after resuming from sleep mode. 从睡眠模式恢复后,我的MC65 Windows Mobile 6.5设备将杀死我的.NET CF 3.5应用程序。 The app is normally running, the device is going to sleep mode or I press the power button.
该应用程序正常运行,设备进入睡眠模式或按电源按钮。 Then I press the power button again, the device wakes up but me app is no longer visible on screen not in Task Manager.
然后,我再次按下电源按钮,设备唤醒,但在任务管理器中不在屏幕上不再显示我的应用程序。 I can't find any logs in my application log, no execeptions etc. Is Windows Mobile somehow killing without any traces apps that uses lots of resources?
我在应用程序日志中找不到任何日志,也没有任何误解等。Windows Mobile是否以某种方式杀死了没有使用大量资源的任何跟踪应用程序? I observer that if the device is plugged to charger, this situation does not happen.
我观察到,如果将设备插入充电器,则不会发生这种情况。
What may be the reason? 可能是什么原因? How to prevent it?
怎么预防呢?
Although Windows Mobile may kill applications if the resources getting low and the application does not react on WM_HIBERNATE messages, this will not be the cause for your current setup. 尽管如果资源不足并且应用程序无法响应WM_HIBERNATE消息,Windows Mobile可能会杀死应用程序,但这不是当前设置的原因。
An application will disappear from screen if it is minimized/hidden. 如果将应用程序最小化/隐藏,它将从屏幕上消失。 This may also happen, if another app comes to foreground and is closed later.
如果另一个应用程序出现在前台并在以后关闭,也可能会发生这种情况。 The window stack is then changed and your app is not in foreground any more.
然后更改窗口堆栈,并且您的应用程序不再处于前台。
An app may crash on a suspend/resume cycle if it accesses resources that will be suspended when the device enters suspend state. 如果某个应用访问设备进入挂起状态时将被挂起的资源,则该应用可能会在挂起/恢复周期中崩溃。 These resources may be network connections or volume (storage) resources.
这些资源可以是网络连接或卷(存储)资源。 What is being suspended during a suspend depends on the Power Management settings.
挂起期间挂起的内容取决于电源管理设置。 A network may be suspended to save power or a mounted volume (storage card) may be unloaded (although this should not be the case with actual devices).
可以暂停网络以节省电量,也可以卸载已安装的卷(存储卡)(尽管实际设备不应该如此)。
So, either your app is using a network connection that is suspended and your app is not robust against network changes or, as stated in the notes, the device does unload the storage card driver during suspend/resume. 因此,或者您的应用程序正在使用已暂停的网络连接,并且您的应用程序无法抵抗网络更改,或者如注释中所述,设备确实会在暂停/恢复期间卸载存储卡驱动程序。 For the later either move your app to the device storage or contact the vendor for a another power management profile, where external storage is maintained during suspend/resume.
对于以后,将您的应用程序移至设备存储或与供应商联系以获取另一个电源管理配置文件,该文件在挂起/恢复期间维护外部存储。
This causes when your application and its supported files might be on Storage card. 这会导致您的应用程序及其支持的文件可能在存储卡上。 Move your application and all files to another storage eg: Application folder.
将您的应用程序和所有文件移动到另一个存储中,例如:Application文件夹。 Follow the link for more detail: https://social.msdn.microsoft.com/Forums/en-US/f0fc4eae-dcaa-402d-b76f-5d737d3a4267/wm-65-app-crashs-when-power-button-was-pressed-twice-to-turn-on-the-display?forum=windowsmobiledev
请点击链接以获取更多详细信息: https : //social.msdn.microsoft.com/Forums/en-US/f0fc4eae-dcaa-402d-b76f-5d737d3a4267/wm-65-app-crashs-when-power-button-was -pressed-两次到投票的本显示器上-?论坛= windowsmobiledev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.