New answers tagged

3

If you really want to understand malloc internals, look into the source code. On Linux systems it is likely to be in GNU libc but there are other implementations of the C standard library (the musl-libc source code is nice to read) and of malloc (e.g. tcmalloc). Here is a very fast and simple malloc, but completely useless since always failing. Grossly ...


-2

I had a problem with this recently, inside a foreach loop I was declaring a complex variable, and using it in a "ByRef" or "ref" function inside the loop. It turned out the variable was picking up the "last iteration's data" regardless of which iteration it was in! I don't know if this makes a difference... But I ended up having the declare the variable ...



Top 50 recent answers are included