[Mono-dev] unable to run VB.NET or C# applications on OS X

Stefan Noack noackstefan at googlemail.com
Wed Aug 1 07:28:44 EDT 2007


hi

I solved this problem by replacing the code generated by VS. as the call
is done by some internal compiler generated i hade to replace something
in Application.Designer.vb [i think it was in Protected Overrides Sub
OnCreateMainForm()]...

you may use a reflector or disassmbler run on your own ap to see, where
you have to change the code because i cannot remember what the change
was

i convince that the call also is only done if an exception occurs during
form generation - but as there may be NotImplementedExceptions or
something like that, you would maybe like to avoid the call because you
want to see the real problem exception.

the problem is that your modifications may be undone when you modify
application properties and code is auto-generated again.

noah

Am Montag, den 30.07.2007, 14:51 -0400 schrieb Alan McGovern:
> Quick solution: Don't use VisualBasic dll's in your C# application.
> Problem solved. Alternatively refactor your code so you don't use the
> GetResourceString method found there. Is there an alternative method
> of getting at the required data? 
> 
> Even if the method were to be released in the next mono version (which
> it won't be, as it's too late to get it implmented) you couldn't rely
> on it being in linux distributions for quite a few months.
> 
> Alan.
> 
> On 7/30/07, Jouini Karim <karim.jouini.ext at parrot.com> wrote:
>         Please, i'm running OS X 10.4
>         with mono 1.2.4 but i'm unable to run any VB.NET or C#
>         application with GUI
>         (even simple application)
>         
>         for VB.NET (the most urgent) i get 
>         
>         Unhandled Exception : System.notimplementedException at
>         Microsoft.VisualBasic.CompilerServices.Utils.GetResourceString
>         
>         a small run of MoMa indicates me that it's unhandled ...
>         
>         will it be soon ? 
>         because it's needed for any winform application.
>         
>         Thanks
>         _______________________________________________
>         Mono-devel-list mailing list
>         Mono-devel-list at lists.ximian.com
>         http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list