By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

How to call string member function inside debugger?

P: n/a
Hi,

I am debugging through a code and I like to know what is default memory
allocated by string default allocator when constructed through its
default ctor. I have stirng object, but cannot call upon it to access
its capacity:
debugger> p myData1

{

_String_base::_M_start=NULL

_String_base::_M_finish=NULL

_String_base::_M_end_of_storage=NULL

static basic_string::npos=4294967295

}
By looking at it, I have no clue how many chars(bytes) has been
allocated for it.

Jun 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
we*****@yahoo.com wrote:
I am debugging through a code and I like to know what is default memory
allocated by string default allocator when constructed through its
default ctor. I have stirng object, but cannot call upon it to access
its capacity:
debugger> p myData1

{

_String_base::_M_start=NULL

_String_base::_M_finish=NULL

_String_base::_M_end_of_storage=NULL

static basic_string::npos=4294967295

}
By looking at it, I have no clue how many chars(bytes) has been
allocated for it. From that printout, I would guess no memory has been allocated. NULL

means nothing.

Cheers! --M

Jun 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.