Click here to Skip to main content
15,889,216 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: resolved, with many curses directed at myself Pin
bkelly1310-Mar-13 15:44
bkelly1310-Mar-13 15:44 
GeneralRe: resolved, with many curses directed at myself Pin
Albert Holguin10-Mar-13 15:49
professionalAlbert Holguin10-Mar-13 15:49 
Generalsomething new to me Pin
bkelly1310-Mar-13 16:14
bkelly1310-Mar-13 16:14 
GeneralRe: something new to me Pin
Albert Holguin11-Mar-13 7:53
professionalAlbert Holguin11-Mar-13 7:53 
Questionrookie need help with STL Pin
spawn200420-Feb-13 7:40
spawn200420-Feb-13 7:40 
AnswerRe: rookie need help with STL Pin
Jonathan Davies21-Feb-13 1:05
Jonathan Davies21-Feb-13 1:05 
AnswerRe: rookie need help with STL Pin
Rahul from Poona23-Feb-13 22:26
Rahul from Poona23-Feb-13 22:26 
Questionlocals not valid in debugger Pin
bkelly1313-Feb-13 3:13
bkelly1313-Feb-13 3:13 
Windows XP Pro, Visual Studio 2008, C++, MFC

Start an application in the debugger and step over:

C++
unsigned int length = 0;
length = strlen( some_char_array );


When hovering over the variable the debugger will not show a value for length. It does show the text of some_char_array, passed in as an argument. Quick watch claims that length is not defined. A breakpoint was set in the constructor of that object and it is being called. The same problem exists there also.

In the below fragment neither the if or the else is executed:

C++
if( length < SOME_CONSTANT )
  { X = 1; }
else
  { X = 2; }


What have I done that will cause the debugger to not show variables?

EDIT: To be more precise the quickwatch says:
CXX0030 Error: expression cannot be evaluated.

Thanks for your time

modified 13-Feb-13 9:44am.

AnswerRe: locals not valid in debugger Pin
Richard MacCutchan13-Feb-13 3:18
mveRichard MacCutchan13-Feb-13 3:18 
GeneralRe: locals not valid in debugger Pin
bkelly1313-Feb-13 3:51
bkelly1313-Feb-13 3:51 
AnswerRe: locals not valid in debugger Pin
Albert Holguin13-Feb-13 4:42
professionalAlbert Holguin13-Feb-13 4:42 
GeneralRe: locals not valid in debugger Pin
Richard MacCutchan13-Feb-13 5:36
mveRichard MacCutchan13-Feb-13 5:36 
Question64 bit MFC application failed to create mdb and mdw files ? Pin
MrKBA12-Feb-13 3:28
MrKBA12-Feb-13 3:28 
AnswerRe: 64 bit MFC application failed to create mdb and mdw files ? Pin
Richard MacCutchan12-Feb-13 4:57
mveRichard MacCutchan12-Feb-13 4:57 
GeneralATL how get the name of the target class inside of a template? Pin
Frank Thielemann12-Feb-13 3:16
Frank Thielemann12-Feb-13 3:16 
GeneralRe: ATL how get the name of the target class inside of a template? Pin
Richard MacCutchan12-Feb-13 4:55
mveRichard MacCutchan12-Feb-13 4:55 
GeneralRe: ATL how get the name of the target class inside of a template? Pin
Frank Thielemann15-Feb-13 19:51
Frank Thielemann15-Feb-13 19:51 
Questionadd sys dsn failed on windows 7 64 Pin
MrKBA11-Feb-13 5:59
MrKBA11-Feb-13 5:59 
QuestionSQL Server Compact Edition Pin
Haakon S.11-Feb-13 4:23
Haakon S.11-Feb-13 4:23 
AnswerRe: SQL Server Compact Edition Pin
Richard MacCutchan11-Feb-13 4:42
mveRichard MacCutchan11-Feb-13 4:42 
GeneralRe: SQL Server Compact Edition Pin
Haakon S.11-Feb-13 5:37
Haakon S.11-Feb-13 5:37 
GeneralRe: SQL Server Compact Edition Pin
Richard MacCutchan11-Feb-13 5:58
mveRichard MacCutchan11-Feb-13 5:58 
Questionerror while trying to uplaod the file in current directory using c language Pin
raghvendrapanda30-Jan-13 19:34
raghvendrapanda30-Jan-13 19:34 
AnswerRe: error while trying to uplaod the file in current directory using c language Pin
Richard MacCutchan30-Jan-13 22:03
mveRichard MacCutchan30-Jan-13 22:03 
AnswerRe: error while trying to uplaod the file in current directory using c language Pin
«_Superman_»1-Feb-13 20:34
professional«_Superman_»1-Feb-13 20:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.