G
Guest
I noticed the other day when starting a console application in VB.NET that
when using System.Diagnostics.Debug.WriteLine(x.ToString()) where x is a
function call (that returns a value that can be represented as string) it
crashes. It's as if an exception is going to be thrown, but one never is,
both VS.NET and the program just hang. If I put as the very first line of the
program Debug.WriteLine("yo") then it doesn't do it, everythinig works fine.
It's as if Debug.WriteLine has to 'warm up' before it can do anything
complex, which of course I know not to be the case, but I wonder what it
could be? Has anyone else ever noticed this?
when using System.Diagnostics.Debug.WriteLine(x.ToString()) where x is a
function call (that returns a value that can be represented as string) it
crashes. It's as if an exception is going to be thrown, but one never is,
both VS.NET and the program just hang. If I put as the very first line of the
program Debug.WriteLine("yo") then it doesn't do it, everythinig works fine.
It's as if Debug.WriteLine has to 'warm up' before it can do anything
complex, which of course I know not to be the case, but I wonder what it
could be? Has anyone else ever noticed this?