[Mono-dev] OdbcError

A Nagappan anagappan at novell.com
Mon Feb 19 00:42:35 EST 2007


Hi,
    Can you file a bug in
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Class%20Libraries
and select the Component as System.Data ? Also attach a test case to
verify this functionality. Is this issue with any other database ?
Provide those info too in the bug.

Thanks
Nagappan

Nagappan A <anagappan at novell.com>
Linux Desktop Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready™
http://www.novell.com/linux


>>> "Luis A. Pinzón" <Luis.Pinzon at globalPyME.com> 02/14/07 2:53 AM >>>
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

_______________________________________________
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