Debug vs. Release
-
Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "
The I/O operation has been aborted because of either a thread exit or an application request
" exception atserialPort.ReadExisting()
transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zafer -
Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "
The I/O operation has been aborted because of either a thread exit or an application request
" exception atserialPort.ReadExisting()
transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zaferA debug version has debug code in it. I can only assume it's interfering with your code. I've found with C# in the past I can set breakpoints in a release version.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi all, I have a simple serial port application in which I am listening to serial port and displaying all the data which is received to a richtextbox. My Question is; When i build the application and run in "Debug" configuration I get "
The I/O operation has been aborted because of either a thread exit or an application request
" exception atserialPort.ReadExisting()
transaction. However when I build the application in "Release" Configuration I never see this exception. In my opinion there is no reason for the exception, but unfortunately I get it in debug mode. Any ideas? Kind Regards zaferDunno. Read up on the Exception; it may be like cross-thread Exceptions that get thrown in debug mode but not in release mode.