[Mono-bugs] [Bug 78133][Maj] New - Adding resources with mbas doesn't work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 18 11:09:44 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 mjscod at gmx.de.

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

--- shadow/78133	2006-04-18 11:09:44.000000000 -0400
+++ shadow/78133.tmp.9534	2006-04-18 11:09:44.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 78133
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: Windows, SuSE Linux 9.3 x86_64
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mjscod at gmx.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Adding resources with mbas doesn't work
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+I compile an application with "mbas" and specifiy a resource file that
+needs to be embeeded (option "-res") into the target executable. The
+resource doesn't get embeeded into the executable file.
+
+Steps to reproduce the problem:
+1. Compile sample application with "mbas /res:TestApp.resx 
+/o:CompileVB.exe /m:modMain modMain.vb"
+2. Start resulting executable with "mono CompileVB.exe"
+3. Look at the stack trace
+
+Actual Results:
+
+Stack trace:
+> Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+> Parameter name: stream is null
+> in <0x000a8> System.Resources.ResourceSet:.ctor (System.IO.Stream stream)
+> in <0x00095> modMain:GetStoredXML (System.String
+pStrResourceBaseFileName, System.String pStrId)
+> in <0x000ba> modMain:Main ()
+
+
+Expected Results:
+1 - Hello World !
+2 - Hello World !
+...
+100 - Hello World !
+
+How often does this happen? 
+Every time I start the application.
+
+Additional Information:
+I tried the compilation using "mbas" on both Windows XP Pro SP2 and SuSE
+9.3 x86_64 with Mono 1.1.15


More information about the mono-bugs mailing list