[Mono-bugs] [Bug 411719] New: MDB can't execute methods from structs
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 23 19:48:08 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=411719
Summary: MDB can't execute methods from structs
Product: Mono: Debugger
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: cli
AssignedTo: martin at novell.com
ReportedBy: lluis at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
using System;
namespace Test
{
struct SomeStruct
{
}
class MainClass
{
public static void Main(string[] args)
{
SomeStruct s = new SomeStruct ();
Console.WriteLine ("Instance Ready");
}
}
}
Set a breakpoint in the "Instance Ready" WriteLine, and run the app. Then try
to execute the method ToString() on that instance. It will print an error about
method not found. Notice that it works fine if the type is a class, not a
struct.
Here is the sequence:
lluis at portador:~/temp> mdb kk.exe
Mono Debugger
(mdb) r
Starting program: kk.exe
Thread @1 stopped at #0: 0xb7a03233 in Test.MainClass.Main(string[])+0x3 at
/home/lluis/temp/kk.cs:14.
14 Console.WriteLine ("Instance Ready");
(mdb) p s.ToString ()
ERROR: Type `Test.SomeStruct' has no member `ToString'
--
Configure bugmail: https://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