[Mono-list] Mint does not interpret Threading Code

Madhuri Kottamasu madhuri_kottamasu@yahoo.com
Fri, 22 Feb 2002 10:40:07 -0800 (PST)


I have a simple multi-threaded app. I can compile it
on Windows using mcs and also I can run it. But, when
I try to interpret it using "mint", it throws me
"Application Error". Does any one have similar
experience ? Is there any solution?

This is the exact error message :
The instruction at "0x004188aa" referenced memoty at
"0x00000018". The memory could not be "read".

Here is the source code for the app:
using System;
using System.Threading;

namespace MultiThreadedApp
	class Class1
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		static void Main(string[] args)
			Class1 c = new Class1();
			Thread t = null;
			for (int i=0; i < 5; i++)
				if (i % 2 == 0)
					t = new Thread(new ThreadStart(c.ThreadMethod1));
					t = new Thread(new ThreadStart(c.ThreadMethod2));

		private void ThreadMethod1()
			Console.WriteLine("This is a thread method1");

		private void ThreadMethod2()
			Console.WriteLine("This is a thread method2");


Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games