[Mono-devel-list] Commandline error

Paolo Molaro lupus at ximian.com
Fri May 9 03:54:48 EDT 2003


On 05/08/03 Donelle Sanders wrote:
> This test case produces the "Killed" bug:
> 
> using System;
> using System.IO;
> 
> class MyNode {
> 	public class Node {
> 		public Node () {
> 			Name = "Default";
> 		}
> 		
> 		public string Name {
> 			get { return Name; }
> 			set { Name = value; }
> 		}

The Name property is broken: it will lead to a stack overflow and hence
a crash whenever you access it. Fix your program and all will be ok:-)

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list