Error Cannot Obtain Value .net
Visual Studio Diagnostics (Debugger, Profiler, IntelliTrace) Question 0 Sign in to vote hello I have a problem while debugging in visual studio 2005 i have a class with an enumerator member in it, and while debugging when i want to see the value of the enumerator I get the error "error: cannot obtain value" is there any way to see the enumerator value? Thursday, February 22, 2007 9:53 AM Reply | Quote Answers 0 Sign in to vote I believe this to be a bug in the managed C++ expression evaluator.A workaround would be to enter the full expression for the sub item into the watch window, like so:MyTest.mBool Marked as answer by rchiodo - MSFTModerator Friday, November 13, 2009 11:45 PM Friday, November 13, 2009 11:45 PM Reply | Quote Moderator All replies 0 Sign in to vote I am seeing the same problem using Visual C++ 2008 with the following versions: Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM Microsoft .NET Framework Version 3.5 SP1 The problem is easily reproducible by creating an empty CLR project, and creating a CPP file with the following code: enum UnmanagedBool { Bool_False, Bool_True }; struct UnmanagedStruct { UnmanagedStruct() : mBool( UnmanagedBool::Bool_False ) { } UnmanagedBool mBool; }; int main() { UnmanagedStruct MyTest; return 0; } If you set a breakpoint on the last line of the main function, you'll see that the debugger shows "error: cannot obtain value" for the value of mBool. Interestingly, if you right click on mBool and select 'Add Watch' you'll be able to see the value for it. When you then go back to viewing the local variable MyTest, it will show a green refresh symbol next to the value of mBool. Clicking this will then show the correct value. Changing UnmanagedStruct to a managed struct by adding the ref keyword allows you to see the numerical value for the enumeration type. Unfortunately in my main application this isn't possible, so I really need a fix for this. Wednesday, November 11, 2009 12:19 AM Reply | Quote 0 Sign in to vote I believe this to be a bug in the managed C++ expression evaluator.A workaround would be to enter the full expression for the sub item into the watch window, like so:MyTest.mBool Marked as answer by rchiodo - MSFTModer
obtain value' on any variable (DataSet in my case) even when the information is passed correctly from the DataTier into the DataSet. What was interesting about this error is that it never happened to any other DataSet in the same class. After googling for the problem, I found out that following the insertion to the DataSet, my class had a call to a function with apparently more parameters than VS Debugger can handle and therefore the error. This looks like an issue with the Debugger that requires attention of our friends at MS. « Too many things, Too little time Cache Access Pattern and updating it frequently » Software https://social.msdn.microsoft.com/Forums/vstudio/en-US/558ee4d5-3f16-4dff-a231-e6f8301df7a2/cannot-obtain-value-error-message?forum=vsdebug Developer. Blogger. Speaker Subscribe to RSS feed Follow @zubairdotnet Zubair Ahmed on Twitter Counter Search for: Archives Select Month March 2015 (1) November 2014 (1) June 2014 (1) January 2014 (1) December 2013 (2) September 2013 (3) July 2013 (3) May 2013 (1) April 2013 (1) January 2013 (1) November 2012 (1) September 2012 (2) August 2012 (1) July 2012 (1) June 2012 (1) May 2012 (1) April 2012 (3) March 2012 http://www.zubairahmed.net/?p=85 (3) October 2011 (1) September 2011 (1) July 2011 (1) June 2011 (1) May 2011 (1) April 2011 (1) February 2011 (1) September 2010 (2) July 2010 (4) June 2010 (1) May 2010 (1) January 2010 (1) November 2009 (2) October 2009 (2) August 2009 (2) July 2009 (1) May 2009 (2) April 2009 (2) December 2008 (1) November 2008 (2) June 2008 (4) May 2008 (2) April 2008 (4) February 2008 (1) January 2008 (1) December 2007 (2) November 2007 (3) October 2007 (1) July 2007 (3) June 2007 (2) May 2007 (3) April 2007 (4) March 2007 (2) September 2006 (1) August 2006 (2) July 2006 (3) June 2006 (1) May 2006 (3) April 2006 (2) March 2006 (3) February 2006 (1) January 2006 (2) December 2005 (3) November 2005 (4) October 2005 (3) September 2005 (7) August 2005 (5) July 2005 (1) June 2005 (9) May 2005 (13) April 2005 (1) January 2005 (2) Categories Select Category .ne(1) .NET 2.0(1) .NET 3.5(4) .NET 4.0(6) .NET 4.5(15) .NET Framework(11) .NET Micro Framework(1) ADO.NET(1) Agent SmartWatch(1) Agile(1) AOP(1) AppFabric(2) Architecture(2) ASP.NET(13) ASP.NET 4.5(2) ASP.NET AJAX(2) ASP.NET Charts(1) asp.NETPro(1) Async(2) automation(1) batches(1) Bing Map(1) BlackBerry(1) C#(13) Cache(1) Caching(2) Cloud(1) Cloud Computing(2) Code quality(1) CodeSmith Studio(1) CustomValidator(1) Data Services(1) DataTable(1) Domain Driven Design(1) DTN(1) Dubai(1) ELMAH(1) En
activation email could not send to your email. Please try again. Toggle navigation PRODUCTS Download Trial Live Demo What’s New Free Community License Available Unlimited License Starts At $ 3,995 https://www.syncfusion.com/forums/39318 COMPONENTS AND FRAMEWORKS WEB ASP.NET MVC ASP.NET Core ASP.NET Web Forms JavaScript LightSwitch Silverlight DESKTOP Windows Forms WPF UWP MOBILE Xamarin UWP JavaScript WinRT Windows Phone Orubase FILE FORMATS Excel PDF Word PowerPoint DATA SCIENCE Predictive Analytics ENTERPRISE SOLUTIONS Dashboard Platform Report Platform Big Data Platform Data Integration Platform RESOURCES E-Books White Papers Case Studies .NET FAQ SYNCFUSION PLUS Plus Benefits FREE ICONS Metro Studio CONSULTING SUPPORT DIRECT-TRAC SUPPORT SYSTEM COMMUNITY error cannot FORUMS KNOWLEDGE BASE ONLINE DOCUMENTATION PURCHASE FREE TRIALS COMPANY ABOUT US PRESS RELEASES BLOG CAREERS CONTACT US SIGN IN 0 SIGN IN Sorry, an error occurred while attempting to log in. Email Address Forgot password? Password Keep me logged in SIGN IN Don’t have an account? SIGN UP FOR FREE My account Create a support incident SIGN OUT Home Forums Windows Forms "error: ca... "error: cannot obtain value" when debugging Thread ID: error cannot obtain Created: Updated: Platform: Replies: 39318 Jan 4,2006 09:39 AM Jan 6,2006 04:04 AM Windows Forms 4 Subscribe to this post Tags: Calculate Brian J. Burnett Asked on January 4, 2006 09:39 AM When I step into a sub all of the global and local to the sub syncfusion type variables get the message "error: cannot obtain value" in the debugger. Although I can''t see what is going on it does appear that the syncfusion variables are workign correctly as my program behaves as expected. Any idea what is going on? I''m using 4.101.0.9 and VS2003. Reply | Reply with quote Brian J. Burnett Replied on January 4, 2006 09:46 AM This only occurs after calling CalculateAll. >When I step into a sub all of the global and local to the sub syncfusion type variables get the message "error: cannot obtain value" in the debugger. > >Although I can''t see what is going on it does appear that the syncfusion variables are workign correctly as my program behaves as expected. > >Any idea what is going on? > >I''m using 4.101.0.9 and VS2003. > > Reply | Reply with quote Administrator [Syncfusion] Replied on January 5, 2006 02:11 AM Hi Brian, I tried to reproduce the error in this sample: C:\Program Files\Syncfusion\Essential Studio\4.1.0.9\windows\Calculate.Wi