[MonoTouch] Attempting to JIT compile method... what am I doing wrong?

slodge me at slodge.com
Wed Mar 21 17:15:22 UTC 2012


Thanks

That works perfectly

Stuart

On 21 March 2012 16:44, MiKeL [via MonoTouch] <
ml-node+s2284126n4492954h88 at n4.nabble.com> wrote:

> https://bugzilla.xamarin.com/show_bug.cgi?id=3682
>
> Try this:
> var add = t.GetAddMethod();
> add.Invoke(u, new object[] { new System.EventHandler((object b,
> System.EventArgs args) => {}) });
>
> -----Original Message-----
> From: [hidden email]<http://user/SendEmail.jtp?type=node&node=4492954&i=0>[mailto:[hidden
> email] <http://user/SendEmail.jtp?type=node&node=4492954&i=1>] On Behalf
> Of slodge
> Sent: Wednesday, March 21, 2012 5:35 PM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4492954&i=2>
> Subject: [MonoTouch] Attempting to JIT compile method... what am I doing
> wrong?
>
> I've got this code currently which is failing because of a JIT error.
>
> var u = new UIButton();
> var t =u.GetType().GetEvent("TouchDown");
> t.AddEventHandler(u, new System.EventHandler((object b, System.EventArgs
> args) => {}));
>
> The exception message is:
> // Attempting to JIT compile method '(wrapper delegate-invoke)
> <Module>:invoke_void__this___UIControl_EventHandler
> (MonoTouch.UIKit.UIControl,System.EventHandler)' while running with
> --aot-only.
>
> I've tried setting link to none, and I've tried adding a static:
> u.TouchDown += (sender, e) => { /* ignored */ };
>
> but that hasn't helped.
>
> What else can I try?
>
> All suggestions welcome!
>
> Thanks
>
> Stuart
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Attempting-to-JIT-compile-method-what-am-I-doing-wrong-tp4492920p4492920.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4492954&i=3>
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4492954&i=4>
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://monotouch.2284126.n4.nabble.com/Attempting-to-JIT-compile-method-what-am-I-doing-wrong-tp4492920p4492954.html
>  To unsubscribe from Attempting to JIT compile method... what am I doing
> wrong?, click here<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4492920&code=bWVAc2xvZGdlLmNvbXw0NDkyOTIwfC05NTY3NjMzNzE=>
> .
> NAML<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://monotouch.2284126.n4.nabble.com/Re-Attempting-to-JIT-compile-method-what-am-I-doing-wrong-tp4493045p4493045.html
Sent from the MonoTouch mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120321/ac20e316/attachment-0001.html>


More information about the MonoTouch mailing list