[Mono-bugs] [Bug 68749][Cri] New - Arg_InsufficientSpace exception thrown

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 25 Oct 2004 03:18:36 -0400 (EDT)


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 accounts@sandmik.net.

http://bugzilla.ximian.com/show_bug.cgi?id=68749

--- shadow/68749	2004-10-25 03:18:36.000000000 -0400
+++ shadow/68749.tmp.19498	2004-10-25 03:18:36.000000000 -0400
@@ -0,0 +1,88 @@
+Bug#: 68749
+Product: Mono: Class Libraries
+Version: unspecified
+OS: other
+OS Details: Windows (mono-1.0.2-gtksharp-1.0.2-win32-0.7) and Linux (Mono 1.0.2)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: accounts@sandmik.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Arg_InsufficientSpace exception thrown
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+Run this code:
+"
+CDatabaseAwareObject.OpenConnection();
+IDbCommand checklocked = CDatabaseAwareObject.CreateCommand(
+"SELECT count(logid) FROM ADMINSLOGINSLOG WHERE STATUS = 2 AND ADMINID = ? 
+AND LOCKEDTRANSDATE >= ?");
+			
+CDatabaseAwareObject.AddParameter(checklocked, "@adminid", 1);
+CDatabaseAwareObject.AddParameter(checklocked, "@lockedtransdate", 
+DateTime.Now);
+
+int count = Convert.ToInt32(checklocked.ExecuteScalar());
+"
+
+2. I am sorry this code uses some library functions, however there isn't 
+much of a difference, it is clear what they do. (I hope)
+3. 
+
+Actual Results:
+STACK TRACE:
+"
+System.ArgumentException: Arg_InsufficientSpacein <0x00167> 
+System.Text.ASCIIEncoding:GetBytes (string,int,int,byte[],int)
+in <0x00169> System.Data.Odbc.OdbcParameter:setBuffer ()
+in <0x00027> System.Data.Odbc.OdbcParameter:Bind (intptr,int)
+in <0x00062> (wrapper remoting-invoke-with-check) 
+System.Data.Odbc.OdbcParameter:Bind (intptr,int)
+in <0x00260> System.Data.Odbc.OdbcCommand:Prepare ()
+in <0x00032> System.Data.Odbc.OdbcCommand:ExecSQL (string)
+in <0x00090> System.Data.Odbc.OdbcCommand:ExecuteNonQuery (bool)
+in <0x00011> System.Data.Odbc.OdbcCommand:ExecuteReader 
+(System.Data.CommandBehavior)
+in <0x00010> System.Data.Odbc.OdbcCommand:ExecuteReader ()
+in <0x00023> System.Data.Odbc.OdbcCommand:ExecuteScalar ()
+in <0x000ae> 
+FPBill.BusinessLayer.Administrators.CAdministrators:CheckFailedLoginAttempt
+s (string,string,string)
+in <0x00058> FPBill.AdminsLoginControl:loginButton_Click 
+(object,System.EventArgs)
+in <0x00066> (wrapper delegate-invoke) 
+System.MulticastDelegate:invoke_void_object_EventArgs 
+(object,System.EventArgs)
+in <0x00070> System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
+in <0x00048> 
+System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaiseP
+ostBackEvent (string)
+in <0x00016> System.Web.UI.Page:RaisePostBackEvent 
+(System.Web.UI.IPostBackEventHandler,string)
+in <0x0003e> System.Web.UI.Page:RaisePostBackEvents ()
+in <0x00216> System.Web.UI.Page:InternalProcessRequest ()
+in <0x000a1> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x002c8> ExecuteHandlerState:Execute ()
+in <0x00074> StateMachine:ExecuteState 
+(System.Web.HttpApplication/IStateHandler,bool&)
+"
+
+
+Expected Results:
+This code runs without any problems on .NET platform of Windows.
+
+How often does this happen? 
+Everytime.
+
+Additional Information: