A
Ashutosh
Hi,
If I use Console.WriteLine in a windows forms application(yes, it's not a
Console app), what does it do internally when there is no debugger attached
to the application? Will it cause any performance degrade? My application is
very heavy network based application and it writes all the messages to the
console.
I tried to test the time taken for execution of Console.WriteLine, but the
time doesn't seem significant.
I understand that Console.WriteLine should not be used in Win forms
application and it should be replaced by Debug or Trace class. But I am
facing issues in an application written by someone else (newbie) around a
year back and I can't just replace it with Debug/Trace unless there is a very
strong reason.
Please advice.
Thanks & Regards,
Ashutosh
If I use Console.WriteLine in a windows forms application(yes, it's not a
Console app), what does it do internally when there is no debugger attached
to the application? Will it cause any performance degrade? My application is
very heavy network based application and it writes all the messages to the
console.
I tried to test the time taken for execution of Console.WriteLine, but the
time doesn't seem significant.
I understand that Console.WriteLine should not be used in Win forms
application and it should be replaced by Debug or Trace class. But I am
facing issues in an application written by someone else (newbie) around a
year back and I can't just replace it with Debug/Trace unless there is a very
strong reason.
Please advice.
Thanks & Regards,
Ashutosh