[Mono-list] First impressions on MONO and first patch
Jaroslaw Kowalski
jarek@atm.com.pl
Wed, 24 Apr 2002 13:44:43 +0200 (CEST)
Hi!
I'm new to the list and mono, so please excuse this e-mail if it should
have been sent somewhere else.
Yesterday I've downloaded a snapshot of mono, compiled and ran it on
Red Hat Linux 7.2. Looks very promising. As I'm a fan of .NET I'm looking
forward to seeing it implemented on Linux.
I attempted to run some multithreaded server and found that
Socket.Poll() method is broken. Here's the fix:
Instead of
socketlist.Add(socket);
it should read
socketlist.Add(this)
and instead of
if(socketlist.Contains(socket)) {
it should read
if(socketlist.Contains(this)) {
Without the fix, I was getting "could not cast" exception because Select()
was attempting to convert "IntPtr" to "Socket". Can you please introduce
the fix in the upcoming versions?
Also TcpListener.AcceptTcpClient is broken because when you try to
GetStream() on resulting TcpClient object you get null. I'll keep
investinating that.
Regards,
Jarek
P.S. After make/make install on mono, the "lib" directory contained some
incompatible versions of *.dll files. I had to compile the classes on
Windows to get it to work. Is it my fault or do the classes really need
recompilation?