[Mono-bugs] [Bug 41273][Wis] New - Qt# apps fail with mini

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 12 Apr 2003 00:44:47 -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 mathpup@mylinuxisp.com.

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

--- shadow/41273	Sat Apr 12 00:44:47 2003
+++ shadow/41273.tmp.22353	Sat Apr 12 00:44:47 2003
@@ -0,0 +1,79 @@
+Bug#: 41273
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mathpup@mylinuxisp.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Qt# apps fail with mini
+
+Description of Problem: 
+ 
+Running Qt# apps fails with mini but not with mono. Although there might be other 
+problems, the most immediate issue that prevents the apps from running is that 
+some string values are being corrupted. 
+ 
+The constructors for widgets perform a connection. The problem occurs when 
+QtSignal.Connect() calls QtSignal.ConnectSignalToSlot(sender, 
+NormalizeParam(signal), receiver, NormalizeParam(slot)). 
+ 
+Inside QtSignal.Connect, NormalizeParam(signal) returns "destroyed()", but when I 
+print the value for the parameter inside ConnectSignalToSlot(), it prints as "Void 
+Emit". If I add code or use different options when starting the app, the string gets 
+corrupted in other ways. 
+ 
+I am trying to isolate the problem, but I'm having a difficult time. 
+ 
+Steps to reproduce the problem: 
+ 
+One way to see the problem is the run the program under both mono and mini using 
+the following command: 
+ 
+1. mini t1.exe --qts-trace-connects 
+2. mono t1.exe --qts-trace-connects 
+ 
+ 
+Actual Results: 
+ 
+Under mini: 
+ 
+ConnectSignalToSlot: (136689776) Qt.QPushButton, Void Emit, (136689776) 
+Qt.QPushButton, Boolean HighPriority 
+ 
+Unhandled Exception: System.ArgumentException: Qt.QPushButton has no slot 
+'Boolean HighPriority' 
+in <0x024d0> 00 Qt.QtSignal:ConnectSignalToSlot 
+(Qt.QObject,string,Qt.QObject,string) 
+in <0x000e7> 00 Qt.QtSignal:Connect (Qt.QObject,string,Qt.QObject,string) 
+in <0x00016> 00 Qt.QObject:Connect (Qt.QObject,string,Qt.QObject,string) 
+in <0x00016> 00 Qt.QObject:Connect (Qt.QObject,string,string) 
+in <0x00157> 00 Qt.QPushButton:.ctor (Qt.QString,Qt.QWidget,string) 
+in <0x00018> 00 Qt.QPushButton:.ctor (Qt.QString,Qt.QWidget) 
+in <0x00078> 00 .Example:Main (string[]) 
+ 
+ 
+Expected Results: 
+ 
+Under mono: 
+ 
+ConnectSignalToSlot: (137986552) Qt.QPushButton, destroyed(), (137986552) 
+Qt.QPushButton, NativeDestroyed() 
+ 
+ 
+How often does this happen?  
+ 
+Always. 
+ 
+Additional Information: 
+ 
+This problem does not occur with GC_DONT_GC=1 is prepended to the command 
+line.