Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read CString in to a buffer Pin
Roger Broomfield19-Nov-07 22:52
Roger Broomfield19-Nov-07 22:52 
GeneralHence... Pin
CPallini19-Nov-07 23:11
mveCPallini19-Nov-07 23:11 
GeneralRe: Hence... Pin
Roger Broomfield19-Nov-07 23:25
Roger Broomfield19-Nov-07 23:25 
GeneralRe: Hence... Pin
CPallini19-Nov-07 23:44
mveCPallini19-Nov-07 23:44 
JokeRe: Hence... Pin
toxcct19-Nov-07 23:54
toxcct19-Nov-07 23:54 
GeneralRe: Read CString in to a buffer Pin
David Crow20-Nov-07 3:23
David Crow20-Nov-07 3:23 
AnswerRe: Read CString in to a buffer Pin
CodingLover20-Nov-07 19:18
CodingLover20-Nov-07 19:18 
Questioncan we debug into delete Pin
George_George19-Nov-07 18:47
George_George19-Nov-07 18:47 
Hello everyone,


I am using Visual Studio 2005 and I am wondering whether we could debug into the global delete operator?

I have tried to debug by setting a break point to delete statement, but I could only debug into destructor.

My understanding is, when we call delete, the internal operations are,

1. invoking destructor;
2. invoking global delete operator.

Is my understanding correct?

For example,

<br />
class Foo {<br />
<br />
int i;<br />
<br />
public:<br />
<br />
	Foo()<br />
	{<br />
		i = 100;<br />
	}<br />
<br />
	~Foo()<br />
	{<br />
		i = 0;<br />
	}<br />
};<br />
<br />
int main (int argc, char** argv)<br />
{<br />
	Foo* f = new Foo();<br />
<br />
	delete f;  // can not debug inside<br />
<br />
	return 0;<br />
}<br />



thanks in advance,
George
AnswerRe: can we debug into delete Pin
Haroon Sarwar19-Nov-07 22:56
Haroon Sarwar19-Nov-07 22:56 
GeneralRe: can we debug into delete Pin
George_George19-Nov-07 23:51
George_George19-Nov-07 23:51 
GeneralRe: can we debug into delete Pin
Haroon Sarwar19-Nov-07 23:57
Haroon Sarwar19-Nov-07 23:57 
GeneralRe: can we debug into delete Pin
George_George20-Nov-07 0:10
George_George20-Nov-07 0:10 
AnswerRe: can we debug into delete Pin
Matthew Faithfull19-Nov-07 23:15
Matthew Faithfull19-Nov-07 23:15 
GeneralRe: can we debug into delete Pin
George_George20-Nov-07 0:07
George_George20-Nov-07 0:07 
Questioncan anyone help me in event macros in excel Pin
yaminisridaran19-Nov-07 17:11
yaminisridaran19-Nov-07 17:11 
AnswerRe: can anyone help me in event macros in excel Pin
Peter Weyzen19-Nov-07 21:22
Peter Weyzen19-Nov-07 21:22 
QuestionWhich is more efficient in C Pin
KellyR19-Nov-07 16:37
KellyR19-Nov-07 16:37 
AnswerRe: Which is more efficient in C Pin
Roger Broomfield19-Nov-07 17:24
Roger Broomfield19-Nov-07 17:24 
AnswerRe: Which is more efficient in C Pin
User 58385219-Nov-07 17:32
User 58385219-Nov-07 17:32 
GeneralRe: Which is more efficient in C Pin
KellyR19-Nov-07 18:38
KellyR19-Nov-07 18:38 
AnswerRe: Which is more efficient in C Pin
followait19-Nov-07 18:08
followait19-Nov-07 18:08 
GeneralRe: Which is more efficient in C Pin
KellyR19-Nov-07 18:38
KellyR19-Nov-07 18:38 
AnswerRe: Which is more efficient in C Pin
jhwurmbach19-Nov-07 22:36
jhwurmbach19-Nov-07 22:36 
QuestionHow to implement Thumbnail list that is scroll from left to right Pin
followait19-Nov-07 16:03
followait19-Nov-07 16:03 
AnswerRe: How to implement Thumbnail list that is scroll from left to right Pin
Hamid_RT19-Nov-07 19:54
Hamid_RT19-Nov-07 19:54 

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.