Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Again GDI+ but diffrenet question Pin
Christian Graus9-Feb-02 22:57
protectorChristian Graus9-Feb-02 22:57 
GeneralFloating Point Variables Pin
9-Feb-02 22:10
suss9-Feb-02 22:10 
GeneralRe: Floating Point Variables Pin
Christian Graus9-Feb-02 22:40
protectorChristian Graus9-Feb-02 22:40 
GeneralRe: Floating Point Variables Pin
alex.barylski9-Feb-02 22:48
alex.barylski9-Feb-02 22:48 
GeneralRe: Floating Point Variables Pin
Tim Deveaux10-Feb-02 3:18
Tim Deveaux10-Feb-02 3:18 
GeneralRe: Floating Point Variables Pin
Tim Smith10-Feb-02 3:25
Tim Smith10-Feb-02 3:25 
QuestionHeap, stack? Pin
Jasmyn9-Feb-02 22:06
Jasmyn9-Feb-02 22:06 
AnswerRe: Heap, stack? Pin
alex.barylski9-Feb-02 22:25
alex.barylski9-Feb-02 22:25 
Stack works on a push pop concept, heap is random.

stack is used for temporary static variables, heap is used to create dynamic variables.

Thats why you get mem leaks with:

Blah* blah = new Blah;

if no delete follows

but never with

Blah blah;

whatever is pushed onto the stack at startup is removed automatically at the end of the current scope, block, function thingy. Poke tongue | ;-P



"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Heap, stack? Pin
Jasmyn9-Feb-02 23:04
Jasmyn9-Feb-02 23:04 
GeneralRe: Heap, stack? Pin
alex.barylski9-Feb-02 23:34
alex.barylski9-Feb-02 23:34 
GeneralRe: Heap, stack? Pin
Nish Nishant9-Feb-02 23:13
sitebuilderNish Nishant9-Feb-02 23:13 
GeneralRe: Heap, stack? Pin
alex.barylski9-Feb-02 23:31
alex.barylski9-Feb-02 23:31 
GeneralRe: Heap, stack? Pin
Nish Nishant10-Feb-02 0:19
sitebuilderNish Nishant10-Feb-02 0:19 
GeneralRe: Heap, stack? Pin
alex.barylski10-Feb-02 12:04
alex.barylski10-Feb-02 12:04 
AnswerRe: Heap, stack? Pin
Alvaro Mendez11-Feb-02 12:10
Alvaro Mendez11-Feb-02 12:10 
GeneralGlobals Pin
alex.barylski9-Feb-02 22:01
alex.barylski9-Feb-02 22:01 
GeneralRe: Globals Pin
Paul M Watt9-Feb-02 22:39
mentorPaul M Watt9-Feb-02 22:39 
GeneralRe: Globals Pin
alex.barylski9-Feb-02 22:44
alex.barylski9-Feb-02 22:44 
GeneralRe: Globals Pin
Christian Graus9-Feb-02 22:42
protectorChristian Graus9-Feb-02 22:42 
GeneralRe: Globals Pin
alex.barylski9-Feb-02 22:52
alex.barylski9-Feb-02 22:52 
GeneralRe: Globals Pin
Christian Graus9-Feb-02 22:59
protectorChristian Graus9-Feb-02 22:59 
GeneralRe: Globals Pin
alex.barylski10-Feb-02 0:13
alex.barylski10-Feb-02 0:13 
GeneralRe: Globals Pin
Sprudling10-Feb-02 0:46
Sprudling10-Feb-02 0:46 
GeneralRe: Globals Pin
alex.barylski10-Feb-02 12:06
alex.barylski10-Feb-02 12:06 
GeneralRe: Globals Pin
Christian Graus10-Feb-02 1:34
protectorChristian Graus10-Feb-02 1: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.