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
Developer Community or GitHub 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 2385 [details]
When creating a binding for a protocol with a return type of CGSize, the height-value seems to be lost when result gets back to the obj-c code/library. I'm not sure if it is a bug specific to CGSize, so i went and created a custom struct that just emulates a CGSize struct (with width/height values of type CGFloat/float) and problem is still to be found.
The problem only arises on the iPhone Simulator and not on real devices (as far as i've tested - iPhone 4 and iPod Touch 2. gen).
I've attached a test case project which shows the problem clearly.
This was fixed recently and, as you found out, only affected i386 (not ARM). The fix will be part of the upcoming 5.3.6 version (being QA'ed right now).
Your test case, from the simulator, shows:
2012-08-21 16:37:40.736 SizeTestApp[43700:1407] GetSizeForMyTest
2012-08-21 16:37:40.737 SizeTestApp[43700:1407] getSizeTest - width=80.000000 - height=80.000000
2012-08-21 16:37:40.741 SizeTestApp[43700:1407] Size received from Obj-C - width: 80 height: 80
*** This bug has been marked as a duplicate of bug 6430 ***