Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!!
Posted

 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900