简体   繁体   English

摩托罗拉MC65-Windows Mobile 6.5恢复后会杀死我的应用

[英]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.

相关问题 在运行Windows Mobile 6.5.3的MC65上自动启动Datawedge - Automatically start Datawedge on MC65 running Windows Mobile 6.5.3 Motorola MC65设备中的Magnetc Stripe Reader问题 - Magnetc Stripe Reader Issue in Motorola MC65 device Windows Mobile 6.5 Motorola MC75没有输入面板和关闭按钮 - Windows Mobile 6.5 Motorola MC75 no Input Panel and Close Button 运行.NET CF 3.5应用程序时Windows Mobile 6.5文件系统使Motorola MC55崩溃 - Windows Mobile 6.5 file system crash Motorola MC55 when running .NET CF 3.5 application Windows Mobile应用程序中的DataGrid的列宽(Motorola MC55) - Column width of a DataGrid in Windows Mobile Application (Motorola MC55) Windows Mobile 6.5上的Windows Phone 7应用程序 - Windows Phone 7 App on Windows Mobile 6.5 Windows Mobile 6.1 / 6.5应用程序启动失败 - Windows Mobile 6.1/6.5 app failing on startup Windows Mobile 6.5应用程序未显示在任务管理器中 - Windows Mobile 6.5 app doesn't show up in Task manager 将Microsoft SDK升级到6.5 Professional之后,平台列表上的“ Windows Mobile 6.5设备” - After updating the microsoft sdk to 6.5 professional, an “Windows Mobile 6.5 Device” on platform list 装有Windows Mobile 6.5的HTC HD2上Java应用程序的框架大小 - Frame size of Java app on HTC HD2 with Windows Mobile 6.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM