[Mono-dev] OdbcError

Luis A. Pinzón Luis.Pinzon at globalPyME.com
Tue Feb 13 16:23:07 EST 2007


Hi, do you know the posible cause of the odbc error reading a varchar
column?

I trying a connection with Gupta SQLBase via odbc in Linux and Windows:
Windows-.Net Ok
Windows-.Mono Fail

Linux-Php Ok
Linux-Mono Fail

When I try to fill a datatable or dataset fails (hangup). Using a
DataReader:
when dataReader.GetValue() or dataReader["colName"] and the col is Double
(type Number) work fine but, when the column is (almost i can see) VARCHAR
the app hang ups and after some time shows in Linux:

Unhandled Exception: System.OutOfMemoryException: Out of memory
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.String:InternalAllocateStr (int)
  at System.Text.StringBuilder.InternalEnsureCapacity (Int32 size) [0x00000]
  at System.Text.StringBuilder.Append (System.String value) [0x00000]
  at System.Data.Odbc.OdbcDataReader.GetValue (Int32 ordinal) [0x00000]
  at System.Data.Odbc.OdbcDataReader.get_Item (Int32 index) [0x00000]
  at System.Data.Odbc.OdbcDataReader.get_Item (System.String name) [0x00000]
  at odbcTest.MainClass.Main (System.String[] args) [0x00000]

Thanks,

Luis




More information about the Mono-devel-list mailing list