[Mono-winforms-list] System.Windows.Forms.MainMenu initialization

Jonathan Pobst monkey at jpobst.com
Fri Dec 1 10:10:06 EST 2006


Hey,

The problem is that constructor for MainMenu is new in the SWF 2.0 
framework.  Currently, only the SWF 1.1 framework is supported.

You can run MoMA on your program to see what all it uses that Mono does 
not support yet: http://www.mono-project.com/MoMA.

Unfortunately, without the source code, you can't really change your 
program to work around it.  You'll have to either add the missing stuff 
to Mono yourself, or wait for it to be added.

Jon


Matthias Urlichs wrote:
> Hi,
> 
> I just tried to run a .NET program (no sources available) which uses SWF.
> 
> Unfortunately, I seem to have run into an initialization error.
> 
> $ MONO_PATH=/tmp/Mono ./SleepTracker.exe 
> 
> ** (./SleepTracker.exe:5817): WARNING **: Missing method System.Windows.Forms.MainMenu::.ctor(IContainer) in assembly /tmp/Mono/System.Windows.Forms.dll, referenced in assembly /daten/home/smurf/Downloads/SleepTracker.exe
> 
> Unhandled Exception: System.MissingMethodException: Method not found: 'System.Windows.Forms.MainMenu..ctor'.
>   at <0x00000> <unknown method>
>   at SleepTracker.frmMain..ctor () [0x00000] 
>   at (wrapper remoting-invoke-with-check) SleepTracker.frmMain:.ctor ()
>   at SleepTracker.frmMain.Main () [0x00000] 
> 
> 
> /tmp/Mono/System.Windows.Forms.dll was built from current SVN,
> using Ubuntu Edgy's mcs (1.1.17.1).
> 
> I don't know much about .NET; help is appreciated.
> 
> Please Cc me on replies. Thanks.
> 



More information about the Mono-winforms-list mailing list