Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / October 2003

Tip: Looking for answers? Try searching our database.

Why are fn params "out of scope"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Developer - 29 Oct 2003 16:53 GMT
When I run this in the VS.Net debugger:
bool SomeClass::GetData(VariantLikeThing *pValue, size_t
ord, unsigned long ulRowID, bool *pbDeleted)
{
    bool bOK = false;

    unsigned long theOrd = (unsigned long) ord;
    unsigned long theRowID= ulRowID;

The debugger can display the values of theOrd and
theRowID, but says ord and ulRowID are out of scope (even
at the point they are assigned to the local variables).  
It is frustrating debugging into functions and not being
able to see the values of the parameters.  Yes, I can
usually go up the call stack and (usually) see what is
being passed in, but why should I have to?
Anyone know why this happens?
Raj Rangarajan - 29 Oct 2003 23:15 GMT
Is this optimized code? Then yes the deubgger has issues with displaying
variables since it has no idea where they are or the location that the
symbolic informations tells the deubgger is wrong

--------------------
>Content-Class: urn:content-classes:message
>From: "Developer" <anonymous@discussions.microsoft.com>
[quoted text clipped - 33 lines]
>being passed in, but why should I have to?
>Anyone know why this happens?
CB - 30 Oct 2003 16:05 GMT
No, this is a debug build, no optimization.

> Is this optimized code? Then yes the deubgger has issues with displaying
> variables since it has no idea where they are or the location that the
> symbolic informations tells the deubgger is wrong

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.