[Mono-devel-list] Commandline error

Donelle Sanders matrice64 at lycos.com
Thu May 8 21:44:51 EDT 2003


 
--
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; }
		}
		
	}	
	public static void Main (string [] args) {
	
		Node node = new Node();
		Console.WriteLine ("Node name: {0}\r",node.Name);
	}
}



Please correct me if I've errored, thanks.

-Matrice


On Thu, 08 May 2003 16:19:12  
 Donelle Sanders wrote:
> 
>--
>Heres a test case :
>class MyNode {
>	public class Node {
>		public string Name;
>
>		public Node (string name) {
>			Name = name;
>		}
>	}	
>	
>	public static void Main (string [] args) {
>
>		Node node = new Node("First Node");
>		Console.Write ("Node name: {0}\r", node.Name);
>	}
>}
>
>Output: Node name: First Node
>
>Now with this constructor added to the class:
>	public Node (Node node) {	
>		Name = node.Name;
>        }
>
>Output: Killed 
>or 
>Output: ("Nothing is outputed just blank")
>
>
>-Matrice
>
>
>
>On Thu, 8 May 2003 10:47:34   
> Paolo Molaro wrote:
>>On 05/08/03 Donelle Sanders wrote:
>>> Before release .24 I was able to pass arguements to my program , now when I do I get the debug out put "Killed", what does that mean ? I tried placing Console.WriteLine everywhere to catch some type of input but it seems not to accept it, any ideas ???
>>
>>If it prints "Killed" it was probably killed by your kernel, possibly
>>because it allocated lots of memory.
>>Of course, since you didn't provide any useful info to reproduce
>>the bug, we can't see exactly what happens and fix the possible bug.
>>
>>Thanks.
>>
>>lupus
>>
>>-- 
>>-----------------------------------------------------------------
>>lupus at debian.org                                     debian/rules
>>lupus at ximian.com                             Monkeys do it better
>>_______________________________________________
>>Mono-devel-list mailing list
>>Mono-devel-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>
>
>____________________________________________________________
>Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
>http://login.mail.lycos.com/r/referral?aid=27005
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005



More information about the Mono-devel-list mailing list