Bug 18299 - The requested operation cannot be completed because the object has been garbage collected.
Summary: The requested operation cannot be completed because the object has been garba...
Status: VERIFIED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: 3.8
Assignee: vsx
URL:
Depends on:
Blocks:
 
Reported: 2014-03-11 10:18 UTC by softlion
Modified: 2016-05-10 17:01 UTC (History)
11 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 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:
VERIFIED NOT_REPRODUCIBLE

Description softlion 2014-03-11 10:18:50 UTC
While debugging an ios app on ios7 simulator, when a breakpoint is hit, if you hover the mouse above a variable which is an array, and try to examine the content of the array, you can't as this message is displayed instead.

The requested operation cannot be completed because the object has been garbage collected.

See screen shot.
http://pbrd.co/N3xuuC
Comment 1 Ram Chandra 2014-03-11 11:39:42 UTC
I have checked this issue and i am able to reproduce this issue.

Steps to reproduce:

1. Create an "iOS application" on "Visual Studio 2013".
2.  Put the following code in AppDelegate.cs" file

      readonly string url = "https://www.google.co.in/search?q=google+url&oq=google+url&aqs=chrome..69i57j0l5.4409j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8";       

      //calling of function 
       EndOk (url);

        public void EndOk(string url)
        {
           // Step1
            var parameters = url.Substring(0).Split(new[] { '&' },       
            StringSplitOptions.RemoveEmptyEntries). Select(pair => pair.Split(new[] { '=' }, 2)).ToDictionary(
            p => p[0], p => p[1]);
            var status = parameters["status"];
            // code block for further operation...
        }

3. Put a break point on the next line of "Comment Step1". 
4. Build and deploy application on iOS Simulator.

I observe that when I try to check the values of "parameters" array it shows a message i.e. "The requested operation cannot be completed because the object has been garbage collected."

As per my understanding it should contains the value of parameter array instead of this message because it shows count 7 but when we check the values it shows the message.


screencast : http://www.screencast.com/t/h1gmpzryG

Environment:

Windows 7
VS2013
Xamarin.iOS : 1.10.47
Comment 2 Ram Chandra 2014-11-13 07:30:26 UTC
I have checked this issue with following builds:

Windows Info: 

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.53344
Installed Version: Professional
Xamarin   3.9.41.0 (457369c)
Xamarin.Android   4.20.0.24 (812ca1351e7d7fecd7708f7831742c32047e5ab3)
Xamarin.iOS   8.4.0.0 (7771b97c1b03eee3745930f42910ec4f30e2c668)

Mac Info: 

Mac OS X 10.9.5
Xamarin Studio : 5.5.4 (build 14)
Mono 3.10.0 ((detached/771f43f)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.1 (6604)
Xamarin.iOS : 8.4.0.38 (Enterprise Edition)

I have checked this issue and now when I try to check the values of "parameters" array it doesn't shows "The requested operation cannot be completed because the object has been garbage collected." message. It shows the value of parameter array.

Screencast: http://screencast.com/t/x7uxnnseDEKi

This issue has been fixed. Hence, I am closing this issue.