[Mono-devel-list] Threading problem on Mono Linux (but not on windows)

Charles-Louis charlouis.mono at wanadoo.be
Tue Mar 25 11:03:45 EST 2003


I'm working on a cross-platform program that controls Threads, but it
seems that I have one problem there. I tried this on RedHat 8.0 and Suse
8.0, and I get a NullReferenceException when I try to start the Thread:

1. Start program
2. Start Thread
--> NullReferenceException (only on linux)
3. Stop Thread
4. Start Thread
--> Hello World !
--> Hello World !
5. Stop Thread
6. Close program

On windows, though, I can start the Thread normally, so It's very
strange...

>From what I've found, the WorkerThread function is never called the
first time... maybe there's a race condition somewhere...

I couldn't debug this because I get a nasty crash from mono-debug when
it tries to execute the firs command :-(


If somebody could help me, it would be greatly appreciated. I've
included a README file that describes the program a little bit. Feel
free to contact me.
-- 
Charles-Louis <charlouis.mono at wanadoo.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestCase.tar.bz2
Type: application/x-bzip
Size: 29939 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030325/d7838193/attachment.bin 


More information about the Mono-devel-list mailing list