How to delete garbage

Hi,

i'm working on a little OpenGL Project and i noticed that i have a lot of garbage on the stack when the program is done.

So i could find most of it and delete it when it's no longer used. But there is still a MshViewer.exe!std::_Fac_node with a size of 8 byte on the stack where i don't know where it is from.

https://github.com/GT-Anakin/MshViewer/blob/master/MshViewer/Source/shader.cpp#L23

It appears the first time, after line 22 is executed and the cursor is in line 23. and after it it's always present.

Any idea where it is from and where and how to delete it?
I'm sorry. Delete it? Garbage is garbage. You can't perform any meaningful operation on garbage.

On pretty much all platforms, the contents of the stack on the opposite side of the stack pointer are undefined, because interrupt handlers may execute asynchronously at any time. In other words, it's impossible to get rid of garbage on the stack.
Topic archived. No new replies allowed.