Hi. My VB.net - using Express Visual Basic 2010 - ran "perfectly" while running in Visual Studio environment.
However, once I have built the executable, it would not.
A little more detail: My GUI communicates with a PIC micro controller via RS-232 - to pass commands and data to and from PC.
Thinking that the serial buffer must have gotten "stuck" I would clear it out at the end of each SerialPort1_DataReceived interrupt routine.
SerialPort1.DiscardInBuffer() ' Flushes received buffer
SerialPort1.DiscardOutBuffer() ' Flushes transmit buffer
This did nothing to the app. Still won't run.
I know there is a serial "hiccup" somewhere. Is there an even more generic serial port buffer flush API for VB.net?
Please advise. Thanks.
However, once I have built the executable, it would not.
A little more detail: My GUI communicates with a PIC micro controller via RS-232 - to pass commands and data to and from PC.
Thinking that the serial buffer must have gotten "stuck" I would clear it out at the end of each SerialPort1_DataReceived interrupt routine.
SerialPort1.DiscardInBuffer() ' Flushes received buffer
SerialPort1.DiscardOutBuffer() ' Flushes transmit buffer
This did nothing to the app. Still won't run.
I know there is a serial "hiccup" somewhere. Is there an even more generic serial port buffer flush API for VB.net?
Please advise. Thanks.