没有 UI 的 Windows Mobile 应用程序(类似服务)
我正在开发Windows Mobile应用程序,它将在系统启动时自动启动。我需要将此应用程序作为服务运行,加载时不应显示 UI(进度指示)并在加载时进行一些处理。
我尝试使用 http://managementserviceswm.codeplex.com/ 但它显示 UI(进度指示)作为我的应用程序在启动时正在执行繁重的处理。有没有什么方法可以在后台(或非 UI 线程)进行处理,这不会影响用户与设备的交互,并且不会显示设备中正在发生某些事情的进度指示?
I am developing Windows Mobile Application which will be automatically started in system startup. I need to run this application as service that should not show UI (Progress indication) when it loads and do some processing while loading.
I tried to use http://managedserviceswm.codeplex.com/ but it shows UI (Progress indication) as my application is doing heavy processing on start up. Is there any way to do the processing in background (or NON-UI thread) which will not effect user interaction with device and does not show Progress Indication that something is going on in device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
执行引擎在加载和 JIT 运行应用程序所需的程序集时显示等待光标。没有办法阻止这种形式的发生。您所能做的就是尝试通过将构造函数和静态初始化的数量保持在最低限度来最小化它,并在 CLR 完成所有加载后构建对象。
The wait cursor is shown by the execution engine as it loads and JITs the necessary assemblies to run your application. There is no way to prevent that form happening. All you can do is attempt to minimize it by keeping the amount of constructor and static initialization to a minimum and build up the objects after the CLR has done all of its loading.