[Mono-devel-list] All TDS-Clients hang on Solaris 8

Stefan Mecke news.mecke at buchert-wf.de
Mon Mar 1 03:30:32 EST 2004


Hi all!

I successfully compiled Mono 0.30 and the libraries on Solaris 8 and 
Linux. To access the databases we use I copied and compiled the 
System.Data samples from the documentation.

The point is: They all work on Linux, but everything that uses TDS 
(Sybase, MS-SQL and TdsClient) hangs on Solaris. That meens: the program 
does nothing. When pressing CTRL-C after a while, I get:

Nothing can catch this exception: NullReferenceException: Quit
#0: 0xff8725e0 nop        in 
System.Net.Sockets.NetworkStream::CheckDisposed ()
#1: 0x00001 callvirt   in System.Net.Sockets.NetworkStream::Read 
([O:745b58] [0] [8] )
#2: 0x00018 callvirt   in 
Mono.Data.Tds.Protocol.TdsComm::GetPhysicalPacket ()
#3: 0x00012 callvirt   in Mono.Data.Tds.Protocol.TdsComm::GetByte ()
#4: 0x00006 callvirt   in Mono.Data.Tds.Protocol.Tds::ProcessSubPacket ()
#5: 0x0001d callvirt   in Mono.Data.Tds.Protocol.Tds::NextResult ()
#6: 0x00006 callvirt   in Mono.Data.Tds.Protocol.Tds::SkipToEnd ()
#7: 0x0059d callvirt   in Mono.Data.Tds.Protocol.Tds70::Connect ([O:55ee0] )
#8: 0x0019d callvirt   in System.Data.SqlClient.SqlConnection::Open ()
#9: 0x0000e callvirt   in .Test::Main ([O:4b880] )


The Problem can be reproduced with this code (it works when commenting 
out "dbcon.Open();" so this seems to be the responsible method).

using System;
using System.Data;
using System.Data.SqlClient;

  public class Test
  {
     public static void Main(string[] args)
     {
        string connectionString =
           "Server=thehost;" +
           "Database=theDb;" +
           "User ID=name;" +
           "Password=pass;";
        IDbConnection dbcon;
        dbcon = new SqlConnection(connectionString);
        dbcon.Open();

        dbcon.Close();
        dbcon = null;
     }
  }

I'd love to use mono and c# on Solaris, so I'd do some additional 
debugging if someone told me how.

Thanks
Stefan Mecke



More information about the Mono-devel-list mailing list