[Mono-osx] ExecuteReader()-->Unhandled Exception: System.ArgumentOutOfRangeException: ArgRange_Array

Andreas Stein andi.stein at gmx.net
Sat May 21 15:50:07 EDT 2005


Hi all!

I connect a MySQL-Database with ODBC. If run the ExecuteReader() in my 
code I get alwas the following exception:

Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15 
5:56:12]
2005-05-21 21:43:55.603 mono[758] CFLog (0): WARNING: 
CFSTR("l\303\266schen") has non-7 bit chars, interpreting using MacOS 
Roman encoding for now, but this will change. Please eliminate usages 
of non-7 bit chars (including escaped characters above \177 octal) in 
CFSTR().

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 ()

The SQL-Statement works on command line!!

Any ideas?


regards

Andreas



More information about the Mono-osx mailing list