Re: Right Click context menu sometimes disables "Go To Definition" using VSl.NET 2005



Gary,

I did a Build>Clean Solution. The closed the Solution. Then deleted the
GT.ncb file. Reopened the solution. Built the Debug configuration and ran it
(started via F4). There is an assert that stops the execution. When I
hover over the _DEBUG, there is no value shown and the AssertValid()
function is shown disabled. This looks like the _DEBUG variable is not
considered defined. There is another clue that the code block is disabled
in that a right click context menu has the "Go To Definition", etc., greyed
out.

I would expect that switching from Debug to Release would cause the _DEBUG
to be enabled or disabled. Also the the contained code for AssertValid()
and Dump() woule be enabled/disabled at the same time. By enabled/disabled
I mean that the source code would be greyed or normal text. This certainly
doesn't happen on a simple change of configuration.

Ed


""Gary Chang[MSFT]"" <v-garych@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:LsqTKrYqGHA.4272@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Edward,

Thanks for the sample project.

When I first open your sample project, just as you described in the
previous post, the AssertValid() was greyed out. After I delete the
project's .ncb file and let the VS2005 IDE to regenerate it again, that
problem has been fixed.

But I cannot repro that problem again when I switch back from the Release
configuration. I have run the application in the Release configuration
once
and then return to the Debug configuration, but the problem does not
appear. Would you please provide some repro steps on this scenario?

By the way, the AssertValid() related code block should always be enabled
in the code editor. It just has been neglected when you build it in a
Release configuration (the AssertValid() code would not be compiled and
executed in the run-time). But you should see the same copy of the source
code in the code editor.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.



.



Relevant Pages

  • Re: C++ debug/release builds and project references
    ... Is your class library in configuration "Release"? ... How do you add reference in the Winform project? ... suspect if you add the ManagedClassLib.dll in the debug folder. ... Creating command line "cl.exe ...
    (microsoft.public.dotnet.languages.vc)
  • Re: MFC Application has encountered a problem and needs to close. HELP
    ... the above error message offering me an option to send a message to Microsoft. ... Whenever I run the program in debug configuration it runs OK. ... This has absolutely nothing to do with "MFC exception handling", ...
    (microsoft.public.vc.mfc)
  • Error while trying to debug
    ... When I was trying to open one of my ASP projects somewhere else, I got the following error message: ... Check to see that the project has a valid Web.config file, that the Web.config file sets "debug" to true, and that the debug verb is associated with .aspx. ... An error occurred during the processing of a configuration file required to service this request. ... Source Error: ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Can I change my code depending on the build type?
    ... "Release" configuration for one of projects in the solution - the only option ... is debug. ... if I set compilation debug="false" in web.config. ... the buffer is full or has lived a certain time, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Right Click context menu sometimes disables "Go To Definition" using VSl.NET 2005
    ... But I cannot repro that problem again when I switch back from the Release ... I have run the application in the Release configuration once ... the AssertValid() related code block should always be enabled ... code in the code editor. ...
    (microsoft.public.vc.language)

Loading