E
Elie W
I am a bit of a newbie so maybe there is a simple answer to this question.
I have been using some code that uses LocalAlloc() from the windows API
to allocate memomry on the heap (right?).
In order to make sure that I was freeing the memory correctly I was
requesting a large amount of memory so that I could monitor it in the
task manager.
lpSelPath = LocalAlloc(LPTR, 100000000)
I can usually free the memory without a problem. I realized though that
if I click the reset button on the debug toolbar, before the memory is
released in the code, the memory is not released. Is this correct
behavior? Is it b/c the reset only frees the local stack and not the heap?
Is there a way to free the code (aside from shutting down excel) to free
the memmory?
Thanks,
Elie.
I have been using some code that uses LocalAlloc() from the windows API
to allocate memomry on the heap (right?).
In order to make sure that I was freeing the memory correctly I was
requesting a large amount of memory so that I could monitor it in the
task manager.
lpSelPath = LocalAlloc(LPTR, 100000000)
I can usually free the memory without a problem. I realized though that
if I click the reset button on the debug toolbar, before the memory is
released in the code, the memory is not released. Is this correct
behavior? Is it b/c the reset only frees the local stack and not the heap?
Is there a way to free the code (aside from shutting down excel) to free
the memmory?
Thanks,
Elie.