[Mono-list] [Fwd: Re: [Mono-devel-list] Threading Problem (Bug?):]

Charles-Louis charlouis.mono@wanadoo.be
21 Mar 2003 16:30:05 +0100


--=-3mE/hbe2CeEi7HqX8xph
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


-- 
Charles-Louis <charlouis.mono@wanadoo.be>

--=-3mE/hbe2CeEi7HqX8xph
Content-Disposition: inline
Content-Description: Message suivi - Re: [Mono-devel-list] Threading
	Problem (Bug?):
Content-Type: message/rfc822

Subject: Re: [Mono-devel-list] Threading Problem (Bug?):
From: Charles-Louis <charlouis.mono@wanadoo.be>
To: Dick Porter <dick@ximian.com>
In-Reply-To: <1048246677.19667.6.camel@hagbard.apathetic.discordia.org.uk>
References: <1048244023.1268.7.camel@localhost.localdomain>
	 <1048246677.19667.6.camel@hagbard.apathetic.discordia.org.uk>
Content-Type: text/plain; charset=UTF-8
Organization: 
Message-Id: <1048256236.1287.18.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.3 
Date: 21 Mar 2003 15:17:16 +0100
Content-Transfer-Encoding: 8bit



Le ven 21/03/2003 à 12:37, Dick Porter a écrit :
> On Fri, 2003-03-21 at 11:15, Charles-Louis wrote:
> > Hi,
> > 
> > I'm having a Thread related problem in my program.I get different Errors
> > when I run it with mono on Linux (RedHat 8.0) and Windows,and wanted to
> > know if anyone knows of some issues.
> > 
> > I have to say that, when I ./configure mono, I have to set the
> > SIZEOF_SUNPATH to 108, because it defaults to 0.
> 
> If you could figure out why configure gets this wrong for you, it would
> be appreciated.
> 
> > 
> > Basically, my application starts a Thread when I cklick on a Button in a
> > GTK# window. (after running the program with /WINDOW option)
> > 
> > So, when I start the Thread for the first time, I get a
> > NullReferenceException (actually, I get two, because I start two
> > threads) when I call 'Thread.Start()', and the first instruction of my
> > Thread function (WorkerThread) is never executed
> > (Console.WriteLine("**WorkerThread**");)... the Thread is not started.
> > 
> > When I stop the Thread and restart it, everything runs ok: Thread runs
> > correctly and performs the correct actions.
> > 
> > 
> > Same thing when I run the Thread from the Console...
> > NullReferenceException for the first time, and then everything runs OK.
> 
> No idea what's wrong, and theres no chance of me being able to debug it
> without a test case.
> 
> Please add a bugzilla entry, include the version of mono you are using
> and the smallest possible test sample that shows the problem.
> 
> > 
> > On mono Windows (Console), I can start the Thread normally. But when I
> > stop the Thread, I get this message (on a MessageBox):
> > 
> > ** ERROR **: file threads.c: line 817
> > (ves_icall_System_Threading_Thread_Abort): should not be reached
> > aborting...
> > 
> > followed by an 'abnormal program termination'
> 
> Thread.Abort() isn't implemented on windows.
--> So the error seems to come from RedHat... maybe there was an issue
with that...

I'll try to run this on another Linux Flavor (SuSE) this WeekEnd...

But I don't think I'll be able to write a small TestCase (I already
stripped down everything...). I'll see with my Boss if I can send the
source code...


> - Dick
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-- 
Charles-Louis <charlouis.mono@wanadoo.be>

--=-3mE/hbe2CeEi7HqX8xph--