Bug 3809 - Dictionary<int, double>, immediate window shows silly numbers
Summary: Dictionary<int, double>, immediate window shows silly numbers
Status: RESOLVED DUPLICATE of bug 1949
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-08 07:02 UTC by John Hair
Modified: 2012-03-10 14:48 UTC (History)
3 users (show)

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

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 1949

Description John Hair 2012-03-08 07:02:06 UTC
Hi guys,
http://monotouch.2284126.n4.nabble.com/Strange-issue-with-double-values-in-a-Dictionary-tp4445684p4456225.html

Take a look at the code sample in the linked article, when debugging on a real device and checking the double values stored in the dictionary it shows apparently random values.

Thanks
John
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-03-08 08:46:09 UTC
I just tried this, and it worked fine for me both on device and simulator in my test app.

Something is obviously wrong, but it doesn't seem to be that straight-forward, so can you add a test project where this happens? Maybe it's something in the project settings that provokes it.
Comment 2 Jeffrey Stedfast 2012-03-08 09:47:58 UTC
Looks like from the thread that it only has odd values in the Immediate window?
Comment 3 John Hair 2012-03-08 10:33:36 UTC
Might be iPhone4 specific, jawbrey pointed pit it looked like this:
https://bugzilla.xamarin.com/show_bug.cgi?id=1949
but that was only tested with 2 iPads, the above report was on an iPhone4 too. I'll put together a small app tonight to replicate but would suggest just trying it on an iPhone4 if you have 1 available.
Comment 4 Mikayla Hutchinson [MSFT] 2012-03-10 14:39:05 UTC
From this StackOverflow post it looks like it might be a bug in returning doubles from method invocations in the debugger:
http://stackoverflow.com/questions/9640280/can-anyone-explain-this-behavior-setting-a-lat-long-to-public-double-auto-prop
Comment 5 Mikayla Hutchinson [MSFT] 2012-03-10 14:48:00 UTC
It does look like a dup, let's consolidate info in one report.

*** This bug has been marked as a duplicate of bug 1949 ***