Click here to Skip to main content
15,885,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use timer control in c#
Posted
Updated 12-Aug-15 2:00am
v2
Comments
[no name] 12-Aug-15 12:05pm    
Please have a look to your question after you modified it. It is not longer recognizable what you are asking.

1 solution

Your for loop seems strange. Instead of this:
for (int i = 0; i= data.Length - 1; i++)


Try this:
for (int i = 0; i < data.Length; i++)


Good luck!
 
Share this answer
 
Comments
Member 11710328 28-Jul-15 3:31am    
i also tried as u suggested but same problem
E.F. Nijboer 28-Jul-15 4:27am    
I then think your read on the serial port is hanging simply because nothing is received. Maybe try add some logging to figure out where the code is hanging and also try to look for asynchronous examples for reading the serial port.

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