[Mono-bugs] [Bug 554799] New: Mono vbnc cannot compile segment of code that MS .NET 3.5 can
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 12 00:46:17 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=554799
Summary: Mono vbnc cannot compile segment of code that MS .NET
3.5 can
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basic
AssignedTo: rkvinge at novell.com
ReportedBy: ngompa13 at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
I am porting a program from .NET to Mono so that Linux and Mac versions could
be made available, and Mono doesn't seem to be able to compile a segment of
code (complains that Count isn't a member of System.Byte[]). However, .NET
Framework 3.5 with SharpDevelop can compile and execute it fine.
The application is "Sonic 1 - Text Code Generator"
(http://info.sonicretro.org/Sonic_1_-_Text_Code_Generator) version 2.5
Steps to reproduce the problem:
1. Set up a program that uses code similar to this:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim b() As Byte
Dim i, z As Integer
b = File.ReadAllBytes("C:\menutext.bin")
For i = 0 To b.Count - 10 Step 5
For z = 0 To 5
Me.TextBox2.Text = Me.TextBox2.Text & Hex(b(i + z)) & " "
Next
Me.TextBox2.Text = Me.TextBox2.Text & vbCrLf
Next
End Sub
2. Compile and Execute
Actual Results:
Compile fails with error 'Count' is not a member of System.Byte[]
Expected Results:
Compile succeeds with no error and program executes
How often does this happen?
Always
Additional Information:
Changing b.Count to b.Length allows it to compile, but then the part of the
application becomes crashier in Mono; clicking the "Close" button in the dialog
that pops up when clicking the "Credits Title Cards" button crashes the whole
application. It may cause other crashes in the application.
Currently, closing dialogs (by clicking on the X) that open up when clicking
any of the buttons except for the bottom row will crash the app. Additionally,
none of the generation processes in the dialogs for "Zone Title Cards",
"Credits Title Cards", and "'Sonic Team Presents' Screen" buttons work. They
fail with unknown error that debugger doesn't catch.
The debug log for the app: http://pastie.org/689429
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list