[Mono-dev] TCPListner compatiblity

tcmichals tcmichals at msn.com
Fri Jul 7 16:41:47 EDT 2006


On Microsoft the API is public for example

// Summary:
// Gets the underlying network System.Net.Sockets.Socket.
// The underlying System.Net.Sockets.Socket.
public Socket Server { get; }

On Mono it is On Mono it is protected Socket Server { get; }

Thus the module is compiled on Windows using VS2005, then the program is 
executed under Mono an error occurs becuase it thinks the Server is public, 
but it is protected,
Unhandled Exception: System.InvalidProgramException: Invalid IL code in 
Transports.tcpHost:Listen (): IL_002e: callvirt  0x0a000044







More information about the Mono-devel-list mailing list