Bug 9550 - Invalid Pointer Exception from VS2012 Android Designer
Summary: Invalid Pointer Exception from VS2012 Android Designer
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 4.4.x
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2013-01-14 10:25 UTC by Tom Opgenorth
Modified: 2014-02-12 10:31 UTC (History)
8 users (show)

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

Screenshot of the error (425.10 KB, image/png)
2013-01-14 10:25 UTC, Tom Opgenorth

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:

Description Tom Opgenorth 2013-01-14 10:25:22 UTC
Created attachment 3215 [details]
Screenshot of the error

When trying to open the file Resources/layout-land/main.axml from the Rotation demo in github, you get the error "The operation could not be completed. Invalid pointer".  This error does not happen in Xamarin.Studio. In Xamarin.Studio the designer opens the file and renders it.

Here is the link to the project on github: https://github.com/xamarin/monodroid-samples/tree/master/RotationDemo
Comment 1 Pierce Boggan [MSFT] 2013-06-21 16:23:18 UTC
Just an update, I wasn't able to reproduce this issue in either Xamarin Studio or Visual Studio using Xamarin.Android 4.7.1, but a customer was, using 4.6.08. So it appears that this issue is still around.

Steps the customer used to reproduce:
1.Created a new “Android Ice Cream Sandwich Application” using VS2012.

a) By default the project that’s gets created has a Main.axml file under the Resources/Layout folder. When I double click this file, it opens up fine.

2. I created a folder “Layout-land” under the Resources folder.

3. Right clicked on the “Layout-land” folder and selected “Add -> New Item”.

4. From the “Add New Item” dialog box, I select “Android Layout” template and gave it a name SplitView.axml(This is what I referred to as a new layout file)

5. Now when I double click this “SplitView.axml” file, I get that error. “Operation could not be completed.Invalid pointer”.
Comment 2 Pierce Boggan [MSFT] 2013-06-21 18:03:49 UTC
Also confirmed that I have this working with 4.6.08 on my machine.
Comment 3 Pierce Boggan [MSFT] 2013-06-21 18:04:14 UTC
Microsoft Visual Studio Premium 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Premium

Team Explorer for Visual Studio 2012   04941-004-0043007-02094
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04941-004-0043007-02094
Microsoft Visual Basic 2012

Visual C# 2012   04941-004-0043007-02094
Microsoft Visual C# 2012

Visual C++ 2012   04941-004-0043007-02094
Microsoft Visual C++ 2012

Visual F# 2012   04941-004-0043007-02094
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04941-004-0043007-02094
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

NuGet Package Manager   2.0.30625.9003
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Xamarin.Android   4.6.08007 (0cc7ae3b)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.1.200 (7d63692c)
Visual Studio extension to enable development for Xamarin.iOS
Comment 4 Lluis Sanchez 2013-06-26 05:01:13 UTC
If the issue can't be reproduce and there isn't more information about the error, there isn't much I can do about it.
Comment 5 Lluis Sanchez 2013-06-26 05:45:41 UTC
Actually, I could reproduce it. Fixed in master (ff4ba3c1e4a78cb7de).
Comment 6 José Hurtado 2013-09-24 05:12:51 UTC
Hello Lluis Sanchez, 
I just install last version of Xamarin in Visual Studio 2012 and got this error, there is a workaround? what "Fixed in master" means?
Thank you.
Comment 7 Joshua Barker 2013-12-09 16:11:15 UTC
Not fixed. In VS2013 and getting it in 4.10.1.
Comment 8 calvin.fisher 2014-02-12 10:31:45 UTC
Still not fixed.  Present in VS2012 with both 4.10.2 and 4.12.0