[Mono-bugs] [Bug 78141][Wis] New - DataGrid Locks Desktop; UserControl deaf to events

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 19 13:14:46 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 john at jsacomp.com.

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

--- shadow/78141	2006-04-19 13:14:46.000000000 -0400
+++ shadow/78141.tmp.1038	2006-04-19 13:14:46.000000000 -0400
@@ -0,0 +1,335 @@
+Bug#: 78141
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: John at Jsacomp.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGrid Locks Desktop; UserControl deaf to events
+
+Include at least 6 items from the list in your bug report.
+Incomplete bug reports are very hard to understand, reproduce and fix.
+Retrieved from "http://www.mono-project.com/Bugs":
+
+OK, I tried.  The descriptions of the specific observations, and how 
+to reproduce them, are below.  Some "screenshots" of the behaviors 
+are in the single attachment. 
+
+
+   1.  Test case: Attached, JSAMonoBugs.tgz: tar.gzipped file with 
+included NIP.cs source and RouteMain.cs source and RouteIngest.cs 
+source.
+
+   4. Compiling the test case requires more than mcs test.cs?  Yes.  It 
+is produced by the IDE from six sources, the .mdp is in the attachment.
+  
+   5. Running the test requires more than mono test.exe?  No.  Launch 
+with "mono RouteM.exe" (for version compiled w/ mcs/IDE) or 
+"mono RouteD.exe" (for version compiled with M$ WinDoze .NET v1.1), 
+then follow detailed directions below.
+
+   6. Info about the version of the software you're using (both mono and 
+the operating system or relevant libraries):
+
+Mono version 1.1.14 from the IDE downloadable kit:
+    monodevelop 0.10
+    mono 1.1.14
+    generic GUI installation from GNOME desktop w/ system running 
+	ubuntu 5.10
+
+Libraries: Note that I needed to provide a symbolic link to libgtk!!
+
+	john at P4:~/mono-1.1.14/lib$ ls -lt
+	total 40396
+-->	lrwxrwxrwx   1 john john       28 2006-04-14 09:57 libgtk-x11-2.0.so -> 
+		/usr/lib/libgtk-x11-2.0.so.0
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libgal-2.0.so.6 -> 
+		libgal-2.0.so.6.0.0
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libgdiplus.so ->
+libgdiplus.so.0.0.0
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libgdiplus.so.0 ->
+libgdiplus.so.0.0.0
+	lrwxrwxrwx   1 john john       15 2006-04-13 18:25 libgif.so.4 ->
+libgif.so.4.1.0
+	lrwxrwxrwx   1 john john       17 2006-04-13 18:25 libgif.so.4.1.0 ->
+libungif.so.4.1.0
+	lrwxrwxrwx   1 john john       24 2006-04-13 18:25 libgtkhtml-3.6.so.18 -> 
+		libgtkhtml-3.6.so.18.0.1
+	lrwxrwxrwx   1 john john       29 2006-04-13 18:25
+libgtksourceview-1.0.so.0 ->
+		libgtksourceview-1.0.so.0.0.0
+	lrwxrwxrwx   1 john john       17 2006-04-13 18:25 libhistory.so.4 ->
+libhistory.so.4.3
+	lrwxrwxrwx   1 john john       16 2006-04-13 18:25 liblinc.so.1 ->
+liblinc.so.1.0.0
+	lrwxrwxrwx   1 john john       32 2006-04-13 18:25
+libmonodebuggerreadline.so ->
+		libmonodebuggerreadline.so.0.0.0
+	lrwxrwxrwx   1 john john       32 2006-04-13 18:25
+libmonodebuggerreadline.so.0 ->
+		libmonodebuggerreadline.so.0.0.0
+	lrwxrwxrwx   1 john john       30 2006-04-13 18:25
+libmonodebuggerserver.so.0 ->
+		libmonodebuggerserver.so.0.0.0
+	lrwxrwxrwx   1 john john       29 2006-04-13 18:25
+libmono-profiler-aot.so.0 -> 
+		libmono-profiler-aot.so.0.0.0
+	lrwxrwxrwx   1 john john       29 2006-04-13 18:25 libmono-profiler-cov.so -> 
+		libmono-profiler-cov.so.0.0.0
+	lrwxrwxrwx   1 john john       29 2006-04-13 18:25
+libmono-profiler-cov.so.0 -> 
+		libmono-profiler-cov.so.0.0.0
+	lrwxrwxrwx   1 john john       36 2006-04-13 18:25
+libmono-profiler-heap-buddy.so.0 -> 
+		libmono-profiler-heap-buddy.so.0.0.0
+	lrwxrwxrwx   1 john john       16 2006-04-13 18:25 libmono.so.0 ->
+libmono.so.0.0.0
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libpng12.so.0 ->
+libpng12.so.0.1.2.2
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libpng.so.3 ->
+libpng12.so.0.1.2.2
+	lrwxrwxrwx   1 john john       19 2006-04-13 18:25 libpng.so.3.1.2.2 ->
+libpng12.so.0.1.2.2
+	lrwxrwxrwx   1 john john       18 2006-04-13 18:25 libreadline.so.4 ->
+libreadline.so.4.3
+	lrwxrwxrwx   1 john john       14 2006-04-13 18:25 libtiff.so.3 ->
+libtiff.so.3.5
+	lrwxrwxrwx   1 john john       17 2006-04-13 18:25 libungif.so.4 ->
+libungif.so.4.1.0
+	lrwxrwxrwx   1 john john       24 2006-04-13 18:25 libgal-a11y-2.0.so.6 -> 
+		libgal-a11y-2.0.so.6.0.0
+	lrwxrwxrwx   1 john john       23 2006-04-13 18:25 libgtkhtml-3.0.so.4 -> 
+		libgtkhtml-3.0.so.4.0.0
+	lrwxrwxrwx   1 john john       17 2006-04-13 18:25 libjpeg.so.62 ->
+libjpeg.so.62.0.0
+	lrwxrwxrwx   1 john john       30 2006-04-13 18:25 libmonodebuggerserver.so ->
+		libmonodebuggerserver.so.0.0.0
+	lrwxrwxrwx   1 john john       29 2006-04-13 18:25 libmono-profiler-aot.so ->
+		libmono-profiler-aot.so.0.0.0
+	lrwxrwxrwx   1 john john       36 2006-04-13 18:25
+libmono-profiler-heap-buddy.so -> 
+		libmono-profiler-heap-buddy.so.0.0.0
+	lrwxrwxrwx   1 john john       16 2006-04-13 18:25 libmono.so ->
+libmono.so.0.0.0
+	lrwxrwxrwx   1 john john       18 2006-04-13 18:25 libstdc++.so.5 -> 
+		libstdc++.so.5.0.3
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 heap-buddy
+	drwxr-xr-x   3 john john     4096 2006-04-13 18:25 monodoc
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 gtkhtml
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 gtk-sharp-2.0
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 ikvm
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 pkgconfig
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 boo
+	drwxr-xr-x   2 john john     4096 2006-04-13 18:25 gecko-sharp
+	drwxr-xr-x   5 john john     4096 2006-04-13 18:24 monodevelop
+	drwxr-xr-x   5 john john     4096 2006-04-13 18:24 xsp
+	drwxr-xr-x  16 john john     4096 2006-04-13 18:24 mono
+	drwxr-xr-x   3 john john     4096 2006-04-13 18:24 bonobo
+	-rwxr-xr-x   1 john john     6636 2006-04-04 18:06 libglibsharpglue-2.so
+	-rwxr-xr-x   1 john john    85804 2006-04-04 18:06 libMonoPosixHelper.so
+	-rwxr-xr-x   1 john john   264132 2006-04-04 18:06 libtiff.so.3.5
+	-rwxr-xr-x   1 john john   710608 2006-04-04 18:06 libstdc++.so.5.0.3
+	-rwxr-xr-x   1 john john     2968 2006-04-04 18:06 libvtesharpglue-2.so
+	-rwxr-xr-x   1 john john   173000 2006-04-04 18:06 libreadline.so.4.3
+	-rwxr-xr-x   1 john john     7588 2006-04-04 18:06 libglibsharpglue.so
+	-rwxr-xr-x   1 john john   987296 2006-04-04 18:06 libgal-2.0.so.6.0.0
+	-rwxr-xr-x   1 john john    11988 2006-04-04 18:06 libgnomesharpglue-2.so
+	-rwxr-xr-x   1 john john      918 2006-04-04 18:06 libmonodebuggerreadline.la
+	-rwxr-xr-x   1 john john     1004 2006-04-04 18:06 libmonodebuggerserver.la
+	-rw-r--r--   1 john john    78380 2006-04-04 18:06 libmono-profiler-aot.a
+	-rwxr-xr-x   1 john john     6848 2006-04-04 18:06
+libmono-profiler-aot.so.0.0.0
+	-rwxr-xr-x   1 john john     1046 2006-04-04 18:06
+libmono-profiler-heap-buddy.la
+	-rwxr-xr-x   1 john john     7376 2006-04-04 18:06 libMonoSupportW.so
+	-rwxr-xr-x   1 john john     6976 2006-04-04 18:06 libpangosharpglue-2.so
+	-rwxr-xr-x   1 john john     3352 2006-04-04 18:06 libpangosharpglue.so
+	-rwxr-xr-x   1 john john    28456 2006-04-04 18:06 liblinc.so.1.0.0
+	-rwxr-xr-x   1 john john   142572 2006-04-04 18:06 libpng12.so.0.1.2.2
+	-rwxr-xr-x   1 john john   679368 2006-04-04 18:06 libgdiplus.so.0.0.0
+	-rwxr-xr-x   1 john john     3224 2006-04-04 18:06 libgladesharpglue-2.so
+	-rwxr-xr-x   1 john john   656584 2006-04-04 18:06 libgtkhtml-3.0.so.4.0.0
+	-rwxr-xr-x   1 john john      966 2006-04-04 18:06 libmono-profiler-aot.la
+	-rwxr-xr-x   1 john john    19484 2006-04-04 18:06 libgtksharpglue.so
+	-rwxr-xr-x   1 john john    23956 2006-04-04 18:06 libhistory.so.4.3
+	-rwxr-xr-x   1 john john    20036 2006-04-04 18:06 libikvm-native.so
+	-rwxr-xr-x   1 john john    11696 2006-04-04 18:06
+libmono-profiler-heap-buddy.so.0.0.0
+	-rwxr-xr-x   1 john john     3648 2006-04-04 18:06 libgladesharpglue.so
+	-rwxr-xr-x   1 john john   579553 2006-04-04 18:06
+libmonodebuggerreadline.so.0.0.0
+	-rwxr-xr-x   1 john john  2687003 2006-04-04 18:06
+libmonodebuggerserver.so.0.0.0
+	-rwxr-xr-x   1 john john     7028 2006-04-04 18:06
+libmono-profiler-cov.so.0.0.0
+	-rwxr-xr-x   1 john john    31472 2006-04-04 18:06 libungif.so.4.1.0
+	-rw-r--r--   1 john john  5892238 2006-04-04 18:06 libmonodebuggerserver.a
+	-rwxr-xr-x   1 john john      855 2006-04-04 18:06 libmono.la
+	-rw-r--r--   1 john john    72670 2006-04-04 18:06 libmono-profiler-cov.a
+	-rw-r--r--   1 john john   281434 2006-04-04 18:06
+libmono-profiler-heap-buddy.a
+	-rwxr-xr-x   1 john john   649736 2006-04-04 18:06 libgtkhtml-3.6.so.18.0.1
+	-rwxr-xr-x   1 john john   121028 2006-04-04 18:06 libjpeg.so.62.0.0
+	-rw-r--r--   1 john john 22546242 2006-04-04 18:06 libmono.a
+	-rwxr-xr-x   1 john john    23232 2006-04-04 18:05 libgtksharpglue-2.so
+	-rwxr-xr-x   1 john john  1373083 2006-04-04 18:04
+libgtksourceview-1.0.so.0.0.0
+	-rwxr-xr-x   1 john john    14636 2006-04-04 18:04 libgdksharpglue-2.so
+	-rwxr-xr-x   1 john john  1775292 2006-04-04 18:04 libmono.so.0.0.0
+	-rwxr-xr-x   1 john john    11000 2006-04-04 18:04 libgal-a11y-2.0.so.6.0.0
+	-rwxr-xr-x   1 john john    14056 2006-04-04 18:04 libgdksharpglue.so
+	-rwxr-xr-x   1 john john    12528 2006-04-04 18:04 libgnomesharpglue.so
+	-rw-r--r--   1 john john  1073788 2006-04-04 18:04 libmonodebuggerreadline.a
+	-rwxr-xr-x   1 john john      966 2006-04-04 18:04 libmono-profiler-cov.la
+
+   X. Environment
+
+	john at P4:~/Projects/RouteD$ printenv
+	MANPATH=/home/john/mono-1.1.14/share/man:
+	SSH_AGENT_PID=25943
+	TERM=xterm
+	SHELL=/bin/bash
+	GTK_RC_FILES=/etc/gtk/gtkrc:/home/john/.gtkrc-1.2-gnome2
+	WINDOWID=29360284
+	USER=john
+	LD_LIBRARY_PATH=/home/john/mono-1.1.14/lib:/usr/lib:
+	GNOME_KEYRING_SOCKET=/tmp/keyring-QzztCV/socket
+	SSH_AUTH_SOCK=/tmp/ssh-WRiEA25905/agent.25905
+	SESSION_MANAGER=unix/P4:/tmp/.ICE-unix/25905
+	USERNAME=john
+	DESKTOP_SESSION=default
+	PATH=/home/john/mono-1.1.14/bin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:
+		/bin:/usr/bin:/usr/bin/X11:/usr/games
+	GDM_XSERVER_LOCATION=local
+	PWD=/home/john/Projects/RouteD
+	LANG=en_US.UTF-8
+	GDMSESSION=default
+	HOME=/home/john
+	SHLVL=1
+	LANGUAGE=en
+	GNOME_DESKTOP_SESSION_ID=Default
+	LOGNAME=john
+	DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-
+		w71oVYrLBm,guid=c53f46449f04139ec64693637a38e500
+	PKG_CONFIG_PATH=/home/john/mono-1.1.14/lib/pkgconfig:
+	LESSOPEN=| /usr/bin/lesspipe %s
+	DISPLAY=:0.0
+	LESSCLOSE=/usr/bin/lesspipe %s %s
+	COLORTERM=gnome-terminal
+	XAUTHORITY=/home/john/.Xauthority
+	_=/usr/bin/printenv
+	OLDPWD=/home/john/Projects
+
+
+   7. Provide the output you expect the test case to produce.  Attached:
+VSFormA.jpg, picture of DataGrid populated w/ .NET 1.1.
+
+   8. Provide the actual output you get from the test case.  Attached:
+MainForm.png, the same populated w/ mono on Linux.
+
+  9. New to bug reporting?  Yes.  How I set "priority" for this report:  
+I just took a guess.  The application is not usable running under mono.
+Here is some explanatory text from an Email that I wrote to Peter 
+Bartok:
+
+
+Hi Peter,
+
+I was at LinuxWorld Boston and spent a considerable amount of time at your 
+booth.  The guy there (thought I had his name but I can't find it) told me 
+that you were looking for large applications written in "straight" C# .NET
+1.1, of which we have one, for testing.  Ours is 8500+ lines and mostly what 
+I thought might fail running with mono is working like a champ -- that is,
+lots of binary file I/O in {unsafe} blocks.  What isn't working well at all 
+is Windows.Forms stuff.  Two cases in particular are:
+
+        1. a User-Written control for a numeric input pad (NIP)
+        2. the DataGrid control with GridTableStyles to set the field widths.
+
+(...)
+
+========================================================================
+
+Problem Descriptions and How to Reproduce the Problems.
+
+1. The User-Written Control NIP, which is similar to the simple mode
+of the M$ WinDoze "Calculator" feature, works fine when launched in a 
+simple test case (attached NIP.png), but when in a complex form it is 
+100% deaf.  That is, "pressing" the numbers does not generate any click() 
+events, and entering text in the box does not cause any keyup() events.
+
+To Reproduce:
+
+Go to RouteD/bin/Debug directory.  Launch application with
+"mono RouteM.exe".  MainForm should come up, then press "Ingest"
+and application should notice existing files.  App should place 
+up a MessageBox (should be in middle of existing window but it's 
+not, but that's a topic for another day) and then you push YES 
+and then an "Options" button should replace the "Ingest" button.   
+CLick "Options/Login Warehouse/Select" and the NIP will appear.  
+Now push 2-3-3-0-0-OK to enter a PassCode.  The next time you 
+push "Options" the selection should be "Logout Warehouse".  In this 
+simple case, the NIP worked fine.
+
+Now exit the application entirely ("X", answer YES, OK to forget 
+BayView), and relaunch the app.  This time, when MainForm comes up 
+then you press "Ingest" and answer "NO" in the MessageBox and the 
+"Status/Setup" panel, with a NIP present, should appear.  When you 
+press "New Load" and the NIP is ENABLEd, it is totally deaf.  No 
+pushes of number buttons or OK or CLR have any effect.  The DONE 
+button still works, so it is possible to bail out of this problem
+area of the program.
+
+
+2. The DataGrid is set up to have fields of specified width but 
+the runtime is displaying all the fields with uniform width, not 
+the widths called out in the table style.  If I try to widen the 
+DESCRIPTION column, the entire desktop freezes (not just the 
+mono app window).  The mouse pointer moves on the screen but the 
+gnome desktop doesn't respond to any clicks.  The only way to revive
+the desktop is to CTRL-ALT-F2 to a text window and kill the mono 
+pid.  There are other not-so-serious problems shown in this screen 
+shot, such as fields left-justified instead of right-justified, 
+but those I can work around with userland code.
+
+ 
+To Reproduce:
+
+Go to RouteD/bin/Debug directory.  Launch the application with
+"mono RouteM.exe".  MainForm should come up, then press "Ingest"
+and application should notice existing files.  App should place 
+up a MessageBox and then you push YES to continue current day 
+and then an "Options" button should replace the "Ingest" button.   
+
+CLick "Options/PICK INVOICE/Select" then highlight "THE LIQUOR
+STORE" and press "Select" and the datagrid should be populated.
+On my screen, only one line appears.  THIS IS A BUG.  However,
+clicking in the (imaginary) grid draws the rest of the grid.   
+
+The grid columns are not properly spaced.  They are supposed to 
+be proportioned by GridTableColumnStyles.  If I now attempt to 
+adjust the size of the DESCRIPTION column then the whole desktop 
+is frozen.  The mouse pointer moves on the screen but the GNOME 
+desktop doesn't respond to any clicks.  ALT-TAB doesn't do 
+anything but the keyboard *will* respond to CTRL-ALT-F2.  From a 
+text mode screen, I can then kill the app. 
+
+I'm available anytime for conference!
+
+==========================================
+
+Submitted April 19, 2006.
+
+John Shilling
+System Consultant
+Annapolis, MD  U.S.A.
+(410) 923-4721


More information about the mono-bugs mailing list