[Mono-devel-list] All TDS-Clients hang on Solaris 8
Daniel Morgan
danielmorgan at verizon.net
Mon Mar 1 20:06:09 EST 2004
What archietecture? sparc, x86?
If the arch. is sparc, could it be an endianess problem sending/receiving
data?
The Sybase and TdsClient libraries have not gone through the same testing as
the MS SQL.
My best debug tool there is Console.WriteLine().
-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com]On Behalf Of Stefan Mecke
Sent: Monday, March 01, 2004 3:31 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-devel-list] All TDS-Clients hang on Solaris 8
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
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list