[Mono-bugs] [Bug 78234][Maj] New - Out of memory exception when reading "long varchar" columns

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Apr 28 11:21:04 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mjscod at gmx.de.


--- shadow/78234	2006-04-28 11:21:04.000000000 -0400
+++ shadow/78234.tmp.24912	2006-04-28 11:21:04.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 78234
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: SuSE 9.3 x86_64 and WinXP Pro SP2
+Status: NEW   
+Priority: Major
+Component: Sys.Data
+AssignedTo: tsenganal at novell.com                            
+ReportedBy: mjscod at gmx.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Out of memory exception when reading "long varchar" columns
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Steps to reproduce the problem:
+1. Connect to Sybase ASA database using Systme.Data.Odbc using the Sybase
+ODBC driver.
+2. Load data from a table like SYS.SYSCOLUMN that contains multiple "long
+varchar" entries
+Actual Results:
+- Out of memory exception
+Expected Results:
+- The contents of the row/column
+How often does this happen? 
+- Always
+Additional Information:
+I guess that this problem occurs because ODBC returns a huge column size
+(>1GB) but the actual data is NULL or its size is much smaller. I guess
+that the ODBC reader tries to allocate a memory block as large as the max.
+column width.
+I'll attach a small test application.

More information about the mono-bugs mailing list