简体   繁体   English

如何在真实设备上连接和测试Windows CE项目?

[英]How to connect and test a Windows CE project on a real device?

Note : I'm using VS2008 and I'm working on windows 7. 注意 :我正在使用VS2008,并且正在Windows 7上工作。

I'm developping a Windows CE application which will run on a Motorola MC3000 device with a WinCE 5.0 like OS . 我正在开发Windows CE应用程序,它将在具有WinCE 5.0(如OS)的Motorola MC3000设备上运行。

I tried to use ActiveSync in order to make the test with the selected device possible but it doesn't work on win7, so I tried to find another tool and I found Windows Mobile Device Center based on this discussion . 我尝试使用ActiveSync来使所选设备的测试成为可能,但是在win7上不起作用,因此我尝试找到另一个工具,并根据此讨论找到了Windows Mobile设备中心。

So Now I can browse with the device but unfortunately I can not test with it : The device have a "santech" application installed and can not kill the app. 因此,现在我可以使用该设备浏览,但是很遗憾,我无法对其进行测试:该设备安装了“ santech”应用程序,无法杀死该应用程序。 (even when I reboot the machine, the autorun lunch the app. automatically). (即使当我重新启动计算机时,自动运行也会自动为应用午餐)。 Also when I try to deploy my application on the device it return error reports ; 另外,当我尝试将应用程序部署在设备上时,它还会返回错误报告。 sometimes "no disc space" sometimes "the .exe can not be found". 有时“没有磁盘空间”有时“找不到.exe”。

I'm really stucked. 我真的被卡住了。

Can some one help me with this, I will be really gratefull. 有人可以帮我这个忙吗,我将非常感激。

Sounds like the debugger is attaching just fine, it's just unable to either fully copy the app and dependencies, or there's not enough memory to execute it. 听起来调试器可以很好地附加,它无法完全复制应用程序和依赖项,或者没有足够的内存来执行它。

If you can browse the device, you can stop the "santech" app from running. 如果您可以浏览设备,则可以停止运行“ santech”应用程序。 You just have to determine what is launching it. 您只需要确定启动它的内容即可。 It might be a shortcut in the \\Windows\\Startup folder. 它可能是\\Windows\\Startup文件夹中的快捷方式。 It might be through a registry entry at \\[HKLM\\Init\\] . 它可能是通过\\[HKLM\\Init\\]的注册表项进行的。 IIRC, Symbol devices also support a *.run file in the \\Application\\Startup folder, so check that as well. IIRC,Symbol设备还支持\\Application\\Startup文件夹中的*.run文件,因此也请进行检查。

One of those is launching the app, so you can eliminate that if you desire. 其中之一就是启动该应用程序,因此您可以根据需要消除这种情况。

Next, check the available memory on the device by looking in the Control Panel under System->Memory and adjusting the slider to provide more storage space. 接下来,通过在“控制面板”中的“ System->MemorySystem->Memory并调整滑块以提供更多的存储空间,检查设备上的可用内存。 If there's not enough Storage Memory to store your app, you might try changing the deployment directory (under Project Properties->Device) to push the app binaries to non-volatile storage of some sort (on-board Flash, SD card, etc), if the device has it. 如果没有足够的存储内存来存储您的应用程序,则可以尝试更改部署目录(在“项目属性”->“设备”下),以将应用程序二进制文件推送到某种非易失性存储(板载闪存,SD卡等) ,如果设备有。

If you don't have enough Program Memory to run your app, you might be out of luck. 如果您没有足够的程序内存来​​运行您的应用程序,则可能不走运。 Try killing processes to free up some space and playing with the memory allocation slider. 尝试终止进程以释放一些空间并使用内存分配滑块。

You can debug from inside VS2008 as well. 您也可以从VS2008内部进行调试。 You'll need to tell it to connect to a device as it automatically sends it to a emulator. 您需要告诉它连接到设备,因为它会自动将其发送到仿真器。 To do that you need to select Windows CE Device from the dropdown list found in the "Devices" toolbar (To enable go to View, Toolbars and select Devices). 为此,您需要从“设备”工具栏中的下拉列表中选择Windows CE Device (要启用,请转到“视图”,“工具栏”,然后选择“设备”)。 Then hit F5 and it should start up on your device. 然后按F5,它将在您的设备上启动。 You might get a couple of pop-up boxes that contain a list of devices; 您可能会看到几个包含设备列表的弹出框。 make sure these are set to Windows CE Device as well. 确保将它们也设置为Windows CE Device

This handy page on MSDN should provide the information you need also. MSDN上的该便捷页面还应提供您所需的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM