https://bugzilla.novell.com/show_bug.cgi?id=386415

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=386415#c22





--- Comment #22 from Robert Jordan <[EMAIL PROTECTED]>  2008-05-05 09:42:05 MST 
---
Do you mean with "only supporting valuetype returns by boxing" changing the
wrapper such that it expects boxed valuetypes wherever the managed signature
is expecting a by value parameter?

Something like that:

    void Method (Struct a)

gets wrapped as

    void Method_wrapper (object a)
    {
        Method ((Struct) a);
    }

and it is expected to be called as

    void (*method)(MonoObject*, MonoException**)

I'd like to implement this.


One last question, I hope :-) Currently I'm using the NATIVE_TO_MANAGED wrapper
type because I thought it'd make sense to have the automatic appdomain switch
and thread attach support of this wrapper. But embedding apps already have
enough control over mono. They could manually attach to threads and push
the desired appdomain.

Is it worthwhile to save the costs of these checks and introduce a new
wrapper type for thunk-invoke?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to