At some point in the last couple of months a lot of messages appeared in lines
Event 7 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
started mailing my Visual Studio output window, which makes it difficult to find the actual trace and debug messages. Where do these messages come from and how to disable them?
To solve this problem, I tried several things.
- Most answers point to the setting of checkboxes in the output window. If I remove "Program Exit", the problem messages will disappear, but so will the messages that I want to save.
- I tried to create a custom one
TraceListener
and set a breakpoint in the methods Write
and WriteLine
in the hope that the call stack will tell me where the messages were generated from. I found that these messages do not come from typical methods Diagnotics.Debug
or Diagnotics.Trace
. - I tried redirecting the console through
Console.SetOut()
to user TextWriter
to set breakpoints. Again, I could not find anything.
Any help would be appreciated.
source
share