Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 1217 [details]
If the ComVisible attribute is not set then the class should be available via the IDispatch Interface.
Info about the default can be found here.
This patch looks ok. I think the code is only hit when trying to marshal a managed object into native code.
cominterop_com_visible will probably need updated to look at assembly for attribute in addition to jus the klass.
Do you have a use case for this? Note that all the IDispatch related functionality is currently not implemented and will return E_NOTIMPL.
Yes, it will only be hit when it being marshaled.
>cominterop_com_visible will probably need updated to look at assembly for
>attribute in addition to jus the klass.
Can you give me more details on this?
The test was, an application under WINE creates a .NET object failed when the ComVisible wasn't set.
What other modifiations need to be done? or how do I get my patch into the main repository?
Give me a day or two to write some tests for this in the runtime tests, and I will apply your patch.
Committed at 09c1aa8bf9. Thanks.