Bug 6632 - Protocol binding with CGSize return type loses height value
Summary: Protocol binding with CGSize return type loses height value
Status: RESOLVED DUPLICATE of bug 6430
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-21 15:25 UTC by Lasse Pedersen
Modified: 2012-08-21 16:42 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (117.89 KB, application/zip)
2012-08-21 15:25 UTC, Lasse Pedersen
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED DUPLICATE of bug 6430

Description Lasse Pedersen 2012-08-21 15:25:54 UTC
Created attachment 2385 [details]
Test case

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.
Comment 1 Sebastien Pouliot 2012-08-21 16:42:00 UTC
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 ***