Click here to Skip to main content
15,920,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DDI hooking Pin
Dominik Reichl15-Apr-03 23:13
Dominik Reichl15-Apr-03 23:13 
GeneralRe: DDI hooking Pin
vikramlinux15-Apr-03 23:17
vikramlinux15-Apr-03 23:17 
GeneralTwo strange operations with this pointer. Pin
George215-Apr-03 17:18
George215-Apr-03 17:18 
GeneralRe: Two strange operations with this pointer. Pin
Michael Dunn15-Apr-03 19:36
sitebuilderMichael Dunn15-Apr-03 19:36 
GeneralRe: Two strange operations with this pointer. Pin
George215-Apr-03 19:55
George215-Apr-03 19:55 
GeneralRe: Two strange operations with this pointer. Pin
Michael Dunn15-Apr-03 20:10
sitebuilderMichael Dunn15-Apr-03 20:10 
GeneralRe: Two strange operations with this pointer. Pin
George215-Apr-03 20:11
George215-Apr-03 20:11 
QuestionWill this case cause memory leak? Pin
George215-Apr-03 16:15
George215-Apr-03 16:15 
Hi, everyone!


In the following sample,

--------
class A {

};

int main()
{
A a;
}
--------

I think variable "a" is allocated on function stack and
not on app heap. So there does not exist memory leak.
It is different from the following case, when memory
is allocated on app heap, which needs to be deleted.
Am I correct?

Next example,

--------
class A {

};

int main()
{
A* a = new A();
delete a;
}
--------


Thanks in advance,
George
AnswerRe: Will this case cause memory leak? Pin
Dave Bryant15-Apr-03 16:40
Dave Bryant15-Apr-03 16:40 
GeneralRe: Will this case cause memory leak? Pin
George215-Apr-03 16:53
George215-Apr-03 16:53 
GeneralLooping in C++ Pin
John DeVito15-Apr-03 15:20
John DeVito15-Apr-03 15:20 
GeneralRe: Looping in C++ Pin
Taka Muraoka15-Apr-03 15:29
Taka Muraoka15-Apr-03 15:29 
GeneralRe: Looping in C++ Pin
John L. DeVito15-Apr-03 16:10
professionalJohn L. DeVito15-Apr-03 16:10 
GeneralRe: Looping in C++ Pin
Taka Muraoka15-Apr-03 16:12
Taka Muraoka15-Apr-03 16:12 
GeneralRe: Looping in C++ Pin
Michael Dunn15-Apr-03 19:39
sitebuilderMichael Dunn15-Apr-03 19:39 
GeneralRe: Looping in C++ Pin
Toni7816-Apr-03 21:45
Toni7816-Apr-03 21:45 
Questiondouble table[][] vs double** table? Pin
Anonymous15-Apr-03 12:46
Anonymous15-Apr-03 12:46 
AnswerRe: double table[][] vs double** table? Pin
Chris Losinger15-Apr-03 13:02
professionalChris Losinger15-Apr-03 13:02 
GeneralRe: double table[][] vs double** table? Pin
Anonymous15-Apr-03 13:16
Anonymous15-Apr-03 13:16 
AnswerRe: double table[][] vs double** table? Pin
Dave Bryant15-Apr-03 13:04
Dave Bryant15-Apr-03 13:04 
AnswerRe: double table[][] vs double** table? Pin
Michael Dunn15-Apr-03 19:48
sitebuilderMichael Dunn15-Apr-03 19:48 
GeneralMulti-threaded graphics Pin
Iceman15-Apr-03 12:21
Iceman15-Apr-03 12:21 
GeneralRe: Multi-threaded graphics Pin
Iceman15-Apr-03 12:22
Iceman15-Apr-03 12:22 
GeneralRe: Multi-threaded graphics Pin
Joe Woodbury15-Apr-03 13:58
professionalJoe Woodbury15-Apr-03 13:58 
GeneralRe: Multi-threaded graphics Pin
Iceman15-Apr-03 14:06
Iceman15-Apr-03 14:06 

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.