I'm guessing your instantiating the wrong class. After adding your classes I wrote two programs This one fails with a null reference exception class Program { static void Main(string args) { GVProgram prog = new GVProgram(); Console. WriteLine(prog.isRunning()); } } This one does not class Program { static void Main(string args) { ProgramA prog = new ProgramA("foo"); Console.
WriteLine(prog.isRunning()); } }.
I'm guessing your instantiating the wrong class. After adding your classes I wrote two programs. This one fails with a null reference exception class Program { static void Main(string args) { GVProgram prog = new GVProgram(); Console.
WriteLine(prog.isRunning()); } } This one does not. Class Program { static void Main(string args) { ProgramA prog = new ProgramA("foo"); Console. WriteLine(prog.isRunning()); } }.
I suggest you make the GVProgram class 'abstract'. It might reveal the error (or at least help prevent similar errors in future).
Hmm, interesting. The only way this would reveal the error is if GVProgram was being instantiated directly instead of ProgramA -- that would certainly cause the problem! – Cameron Dec 20 '10 at 4:14 I set GVProgram as Abstract and I get the same result: the debugger complains that name is null.
– dragonmantank Dec 20 '10 at 4:41.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.