Click here to Skip to main content
15,896,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart18-Feb-04 3:55
protectorHeath Stewart18-Feb-04 3:55 
GeneralRe: hard problem with EVENTs Pin
Snowjim18-Feb-04 11:49
Snowjim18-Feb-04 11:49 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart19-Feb-04 3:00
protectorHeath Stewart19-Feb-04 3:00 
GeneralRe: hard problem with EVENTs Pin
Snowjim19-Feb-04 4:22
Snowjim19-Feb-04 4:22 
GeneralUm.... Long Day Help Pin
obelisk2917-Feb-04 10:14
obelisk2917-Feb-04 10:14 
GeneralRe: Um.... Long Day Help Pin
bneacetp18-Feb-04 2:15
bneacetp18-Feb-04 2:15 
GeneralRe: Um.... Long Day Help Pin
LongRange.Shooter18-Feb-04 3:01
LongRange.Shooter18-Feb-04 3:01 
QuestionA bug in VS 2003??? Pin
LongRange.Shooter17-Feb-04 9:43
LongRange.Shooter17-Feb-04 9:43 
I have a Windows Form system which has been in development for about a year. In the VS 2000 platform we incorporated a number of System.Diagnostic.Trace.WriteLineIf statements to trace behavior between the client and the remote communication library it connects with. In the production environment then, one can run the app with the /Debug switch fed into it and we can see what is occuring and which model it bombed on.

All worked great and it was becoming a quick selling point to the developers since this tool would become used by both them and the business analysts.

Now comes VS 2003 and a few weeks ago I got my new laptop and my new install of VS 2003. Woohoo. But when I ran into a situation, and wanted to debug it, the dbgView viewer sat quietly. Confused | :confused: Confused | :confused:

We ran a very simple test just a few minutes ago:
I constructed a C# console app.
I have my Main issue a Console.Write, a Trace.WriteLine, and a Debug.WriteLine. Only the Console.Write appeared anywhere!!! D'Oh! | :doh:

Finally....we created a direct hook into the debug writer with DllImport and added that to the list of outputs. Voila, the raw debug writer created the message without problems. OMG | :OMG:

am I going crazy or is there a 1.1 bug that wasn't there in 1.0??? Cry | :((

The application test:
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace Bomb
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
	{
		[DllImport("Kernel32.dll")]
			static extern void OutputDebugString(string msg);
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			
			Console.Out.Write("This is a test");
			Trace.WriteLine("This is a test");
			Debug.WriteLine("This is a test");
			OutputDebugString("This is a freekin test");
			Console.Read();
		}
	}
}


_____________________________________________
Of all the senses I could possibly lose,
..oh the hell with it! This problem is making me loose my sanity.

AnswerRe: A bug in VS 2003??? Pin
Heath Stewart17-Feb-04 12:42
protectorHeath Stewart17-Feb-04 12:42 
GeneralRe: A bug in VS 2003??? Pin
LongRange.Shooter18-Feb-04 2:38
LongRange.Shooter18-Feb-04 2:38 
GeneralRe: A bug in VS 2003??? Pin
Heath Stewart18-Feb-04 4:16
protectorHeath Stewart18-Feb-04 4:16 
Generalchanging CPropertySheet's bk color Pin
clayman8717-Feb-04 9:14
clayman8717-Feb-04 9:14 
GeneralRe: changing CPropertySheet's bk color Pin
Heath Stewart17-Feb-04 12:33
protectorHeath Stewart17-Feb-04 12:33 
GeneralReading a JPEG file into String Pin
AliIMCIn17-Feb-04 6:40
AliIMCIn17-Feb-04 6:40 
GeneralRe: Reading a JPEG file into String Pin
Werdna17-Feb-04 7:20
Werdna17-Feb-04 7:20 
GeneralRe: Reading a JPEG file into String Pin
Werdna17-Feb-04 11:30
Werdna17-Feb-04 11:30 
GeneralRe: Reading a JPEG file into String Pin
Heath Stewart17-Feb-04 12:32
protectorHeath Stewart17-Feb-04 12:32 
GeneralRe: Reading a JPEG file into String Pin
Mazdak17-Feb-04 10:09
Mazdak17-Feb-04 10:09 
GeneralRe: Reading a JPEG file into String Pin
Heath Stewart17-Feb-04 12:26
protectorHeath Stewart17-Feb-04 12:26 
GeneralRe: Reading a JPEG file into String Pin
Mazdak17-Feb-04 18:13
Mazdak17-Feb-04 18:13 
Generalproblem with Textboxes Pin
raheela17-Feb-04 6:22
raheela17-Feb-04 6:22 
GeneralRe: problem with Textboxes Pin
Heath Stewart17-Feb-04 12:23
protectorHeath Stewart17-Feb-04 12:23 
Generalwriting a struct to a binary file Pin
DennisMetz17-Feb-04 4:19
DennisMetz17-Feb-04 4:19 
GeneralRe: writing a struct to a binary file Pin
Heath Stewart17-Feb-04 4:44
protectorHeath Stewart17-Feb-04 4:44 
GeneralRe: writing a struct to a binary file Pin
DennisMetz17-Feb-04 5:06
DennisMetz17-Feb-04 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.