News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Expansion on previous "Memory Loss" question

Started by Maeser, February 27, 2006, 05:49:21 AM

Previous topic - Next topic

Maeser

I have a buffer thats allocated as Local in a procedure...now will I have to free that buffer every time or will it be smart enough for me? Not so much exiting the program as finishing the procedure.


Thanks

(Again, apologies for my other thread. I was still stuck in java mode)

Mark Jones

Hi Maeser, "local" vars are created on the stack, so after that procedure exits, further stack operations just overwrite that data as needed. It truly is treated as local data. :)
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08