Expression cannot be evaluated at this time.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

topdawg147_at_hotmail.com
Date: 12/07/04


Date: 7 Dec 2004 12:27:52 -0800

I get the above error when I try to view _some_ values in the Immediate
Window while stepping through the debugger. I think it just started
happening. However, when I put the exact same expression in a
Debug.WriteLn(somethinghere) statement, it works just fine.

for example:
? MyClass.CollectionItems.Count (produces the error)
? MyClass.ToString (also produces the error)

while i was just checking again, sometimes i get the "cannot obtain
value" error. also, i have 1 value type in the class and it worked as
expected.

   ? intSomeNumber (works fine)



Relevant Pages

  • Re: Variable not Showing in Debugger
    ... 'Autos' window. ... In another pane I have Call Stack and Immediate. ... The "Autos" window is only available then. ... The debugger has a variety of ways for you to monitor data automatically, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: AppleWin Debugger & AppleWin Ports
    ... I found the single-screen debugger constraining at first ... do what I needed within the window. ... the command line/docs are a little too obtuse for it ... debugger and set a breakpoint at $300, switch back to the emulator and CALL ...
    (comp.emulators.apple2)
  • Re: CATCH-22 wont let me save the file
    ... I opened VBE, hit Ctrl-G, the Immediate Window opened, I cut and pasted the ... Cancel As Boolean) ...
    (microsoft.public.excel.programming)
  • Re: Clearing Immediate window in VBA by code
    ... there is no way to programmatically clear the Immediate ... Private Declare Function FindWindow _ ... Dim hPane As Long ... If hPane = 0 Then MsgBox "Immediate Window not found." ...
    (microsoft.public.excel.programming)
  • Re: Averaging separate fields in a form, excluding blanks
    ... Ron, you've been great. ... > that goes in the Control Source of the field that will display the average. ... > function is working properly by trying it from the Immediate Window. ...
    (microsoft.public.access.forms)