Problem in RS232 Port Access
I am a newbie in port accessing from turboc.
I established a communication between PC and another device through RS232 protocol.
I am facing some problems in that which is explained below and if any one has solution please suggest me.
When i open the turboc from windows OS mode first time, the program is able to transmit and receive the data successfully and am able to exit from the appliication.But when i run the same program next time with out closing the turboc application, the transmission and reception is not happenning properly.
1. When i close the application from the developing environment and reopen, it is working fine.
2. When i run the exe file rather than running in development environment, it is working always.
Thanks in advance,Thangadurai
Re: Problem in RS232 Port Access
If by "always" you mean "never", it's possible your program could be dependent on the behaviour of an uninitialised variable. Debuggers often initialise stuff that wouldn't normally be initialised and this can lead to programs working perfectly in the IDE but not at all when you run them separately.
|All times are GMT +5.5. The time now is 02:37.|