473,323 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

How to call string member function inside debugger?

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
1 1221
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christian Ista | last post by:
Hello, I have a class. I create an instance of this class in Page_Load event. Somewhere in the page I'd like to execute an a function (public) member of this class. This function return a...
5
by: Rob | last post by:
Help me, I'm just beginning with programming in Access 2000. I've tried the http://www.mvps.org/access/api/api0001.htm but it won't work in Access. What am i doing wrong. I don't have...
4
by: Dave | last post by:
I have a program that I've written a class for. I need to call the function in the program from the class. When I try to call the function I receive the error, the name xxx does not exist in the...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
114
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for...
3
by: mike.arsenault | last post by:
Hello I need some help from anyone that can provide it. Below is a function inside a template collection class that I'm writing. I have a TYPE * that points to an allocated memory location, and...
7
by: Blair Craft | last post by:
hi, I got a class have 2 constructors: static int g_idx_counter = 0; Object::Object():{ counter = g_idx_counter++; created_at = last_used = time(NULL);
2
by: =?Utf-8?B?c29jYXRvYQ==?= | last post by:
Hi, I have a DLL in VC6, when a specific function is called it will spawns a few threads and then return. The threads stay running and inside one of these threads an event is created using the...
3
by: cutecutemouse | last post by:
---------------------------This is my task:-------------------------------------- There are hundred of similar classes and a large file(in processing) with thousand of instances of these classes....
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.