[Mono-osx] IDataReader-->System.ArgumentOutOfRangeException

Andreas Stein andi.stein at gmx.net
Wed Jun 1 03:09:42 EDT 2005


Hi all!

I already posted this thread a few weeks before but unfortunately I got 
no response. So I start another attempt.

Problem:
I build a ListView and fill this ListView with records from a MySQL-DB 
via OdbcConnection(). With Mono-1.1.6-4 this works fine until I upgrade 
to Mono-1.1.7  Now, I always get this Exception:

Unhandled Exception: System.ArgumentOutOfRangeException: ArgRange_Array
Parameter name: count
in <0x00170> System.Text.ASCIIEncoding:GetString (System.Byte[] bytes, 
Int32 index, Int32 count)
in <0x00100> System.Data.Odbc.OdbcDataReader:GetColumnAttributeStr 
(Int32 column, FieldIdentifier fieldId)
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcDataReader:GetColumnAttributeStr 
(int,System.Data.Odbc.FieldIdentifier)
in <0x001a0> System.Data.Odbc.OdbcDataReader:GetPrimaryKeys ()
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcDataReader:GetPrimaryKeys ()
in <0x0008c> System.Data.Odbc.OdbcDataReader:GetSchemaTable ()
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcDataReader:GetSchemaTable ()
in <0x000d8> System.Data.Odbc.OdbcDataReader:.ctor 
(System.Data.Odbc.OdbcCommand command, CommandBehavior behavior)
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcDataReader:.ctor 
(System.Data.Odbc.OdbcCommand,System.Data.CommandBehavior)
in <0x00064> System.Data.Odbc.OdbcCommand:ExecuteReader 
(CommandBehavior behavior)
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcCommand:ExecuteReader 
(System.Data.CommandBehavior)
in <0x00020> System.Data.Odbc.OdbcCommand:ExecuteReader ()
in (wrapper remoting-invoke-with-check) 
System.Data.Odbc.OdbcCommand:ExecuteReader ()
in <0x0001c> 
System.Data.Odbc.OdbcCommand:System.Data.IDbCommand.ExecuteReader ()
in <0x00d00> myBariPro.PersonList:InitializeComponents ()
in (wrapper remoting-invoke-with-check) 
myBariPro.PersonList:InitializeComponents ()
in <0x000f0> myBariPro.PersonList:.ctor ()
in (wrapper remoting-invoke-with-check) myBariPro.PersonList:.ctor ()
in <0x0002c> myBariPro.PersonList:Main ()


Please help me!


Andreas



More information about the Mono-osx mailing list