[Mono-bugs] [Bug 65653][Maj] New - VBC compiled application breaks on mono #2
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Sep 2004 17:26:26 -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 jwezel@compumaster.de.
http://bugzilla.ximian.com/show_bug.cgi?id=65653
--- shadow/65653 2004-09-09 17:26:26.000000000 -0400
+++ shadow/65653.tmp.29166 2004-09-09 17:26:26.000000000 -0400
@@ -0,0 +1,83 @@
+Bug#: 65653
+Product: Mono: Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jwezel@compumaster.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: VBC compiled application breaks on mono #2
+
+Description of Problem:
+===================
+
+Compilation of following script is always successfull, but if it has been
+compiled by VBC, it cannot execute on mono:
+
+imports system
+
+Module DebugApp
+
+ Sub Main()
+ Dim a As Object = "l"
+ Console.WriteLine(a = "Mr.")
+ End Sub
+
+End Module
+
+
+Steps to reproduce the problem:
+===================
+1. save file as objcomp.vb and compile with
+ VBC objcomp.vb
+2. start it on mono with
+ mono objcomp.exe
+
+
+
+Actual Results:
+===================
+
+The MBAS compiled version works fine.
+
+The VBC compiled version throws following exception
+
+[root@lwezel Mono]# mono objcomp.exe
+
+Unhandled Exception: System.FormatException: Unknown char: l
+in <0x006b9> System.Double:Parse
+(string,System.Globalization.NumberStyles,System.IFormatProvider)
+in <0x001bf> Microsoft.VisualBasic.VBUtils:isNumber (string,double[])
+in <0x00035> Microsoft.VisualBasic.CompilerServices.DoubleType:FromString
+(string,System.Globalization.NumberFormatInfo)
+in <0x0000f> Microsoft.VisualBasic.CompilerServices.DoubleType:FromString
+(string)
+in <0x00064>
+Microsoft.VisualBasic.CompilerServices.ObjectType:convertObjectToDouble
+(object,System.TypeCode)
+in <0x0001e>
+Microsoft.VisualBasic.CompilerServices.ObjectType:getObjTstStringObject
+(object,object,System.TypeCode,System.TypeCode)
+in <0x0028b> Microsoft.VisualBasic.CompilerServices.ObjectType:ObjTst
+(object,object,bool)
+in <0x00018> DebugApp:Main ()
+
+[root@lwezel Mono]#
+
+
+Expected Results:
+===================
+Should run in any case
+
+
+How often does this happen?
+===================
+Always