[Mono-bugs] [Bug 79265][Wis] New - DataGridView causes 100% CPU usage

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 3 09:27:50 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 eetasoft at online.ee.

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

--- shadow/79265	2006-09-03 09:27:50.000000000 -0400
+++ shadow/79265.tmp.14490	2006-09-03 09:27:50.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 79265
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: eetasoft at online.ee               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGridView causes 100% CPU usage
+
+Description of Problem:
+
+Running exe file using DataGridView in Windows XP using Mono 1.1.17.1 is 
+extremely slow. 
+
+Steps to reproduce the problem:
+
+1. Download and unpack http://eetasoft.ee/datagridviewnotworking.zip
+Run PostgreSQL with some database containig big table.
+
+2. Replace line in form1.designer.cs with you connection string:
+this.npgsqlConnection1.ConnectionString 
+= "SERVER=localhost;DATABASE=eetasoft;USER 
+ID=admin;PASSWORD=a;ENCODING=UNICODE;";
+
+3. Replace the line in Form1.cs with select witch returns a lot of rows:
+
+this.npgsqlCommand1.CommandText = "select * FROM firma1.klient order by 1";
+
+4. Build exe file with VCS and run it under MONO 1.1.17.1 under Windows XP
+
+Actual Results:
+
+Windows Task Manager shows that mono.exe uses 99% CPU if application has 
+focus.
+Grid responds to keystrokes after very long delay so that editing data is 
+impossible.
+
+Expected Results:
+
+CPU usage should be 0. Application must respond to keystrokes immediately.
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+If this sample is changed to use DataGrid (only 2 lines need to be 
+changed), all is OK.


More information about the mono-bugs mailing list