Debug.WriteLine crashes

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
Bonj,

Did you already tried what it did with this?

messagebox.show(x.ToString())

Assuming it is a windowforms application

Cor
 
You should still be able to reference the msgbox function if you add the proper references.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top