VB2005中的ClickOnce部署问题 [英] ClickOnce deployment problem in VB2005

查看:68
本文介绍了VB2005中的ClickOnce部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序在调试中100%工作,并作为编译的exe文件。我与外部硬件通信。但是,当使用ClickOnce使用Publish时,程序将安装,加载和启动。到现在为止还挺好。第一次连接到HW是正常的(协议依赖于简单的

RS232和命令回复样式)。第二个参数被发送到HW并显示在其LED上。一切都好。回复是在VB程序中收到的,但是,当退出数据接收例程时,它会挂起。运行exe文件或处于调试模式时不是这样。

有什么区别,我该如何解决这个问题?



我''我尝试了各种各样的技巧,没有任何作用。



请帮助!!

解决方案

阅读这篇文章



http://devnet.asna.com/documentation/Installation_Notes/Deploying_Windows_Apps_81.htm [ ^ ]


感谢您的输入。

但是我发现了真正的问题,为什么IDE与运行时不同。 VB2010无法在运行时正确处理定时器(或WinXP Pro和VB2010以及VB2005中的组合)。

我使用sleep()函数找到了解决此问题的方法。

碰巧当你在运行时启动计时器时,你必须在启动计时器之前退出该计时器,在IDE中它按预期工作。

rgds

I have an application that works 100% in debug and as a compiled exe file. I communicates with an external HW. But, when using Publish with a ClickOnce, the program will install, load and startup. So far so good. First connection to HW is ok (protocol relies on simple
RS232 and command-reply style). Second parameters are sent to the HW and displayed on its LEDs. All ok. The reply is received in the VB program, but, when exiting the data receive routine, it hangs. Not so when running the exe file or in debug mode.
What is the difference and how can I remedy this?

I''ve tried all sorts of tricks, nothing works.

Help Please!!

解决方案

Go through this article

http://devnet.asna.com/documentation/Installation_Notes/Deploying_Windows_Apps_81.htm[^]


Thanks for your input.
However I found the real problem, why the IDE differs from Run Time. VB2010 can''t handle the Timers correctly in Run Time (or the combination WinXP Pro and VB2010, as well as in VB2005).
I found a way around this problem using the sleep() function.
It so happens that when you start a timer in run time you have to exit that sub before the timer is started, in IDE it works as intended.
rgds


这篇关于VB2005中的ClickOnce部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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