0
Hello. I am developing a C# desktop application that performs a Serial Port routine (Writing, Reading, Capturing Information, Displaying this information). However, there are times when a Stack Overflow error appears, but each hour is in a different row
Error:
An unhandled Exception of type 'System.Stackoverflowexception' occurred in System.Windows.Forms.dll
I got most of it already developed by another person who worked here at the company.
Follow Full code on link: https://docs.google.com/document/d/1Hip8mTZbjIljme6Q0e60XVUEcc1YUnLrwWgpR0LaG_w/pub
How is the code? It is possible to put it in question?
– Leonel Sanches da Silva
Yes. I’ll organize and put it.
– Eduardo Matheus
@Eduardomatheus only with this section not to know, the problem may be bursting there but was caused by another section. On which line is the error pointed?
– Maniero
I put another part of the code.
– Eduardo Matheus
Placing random snippets will not help.
– Maniero
I put in the Docs the complete Code.
– Eduardo Matheus
@Eduardomatheus add the stack trace exception the question and join the relevant code (the code around the line where the stack trace indicates that there was an exception). As it is near impossible to understand (until the code in the link this chaotic).
– Omni
@Daniloloko Thanks! Perfectly solved the problem.
– Eduardo Matheus
Please administrators, consider reopening the question so that I can ask the answer and withdraw from the comments, as the question was not clear but the question was considered difficult. Grateful.
– Danilo Breda
@Daniloloko reopened. Please add more info to the question to make it clearer as well. Then me or another mod can clear the comments here if they mark them as obsolete.
– Sergio