I was looking around for some code that would allow me to retrieve the current memory usage of my program, and came up with GR Moore's code at . It seemed to be fine, but when I runt it I got negative memory usage values!
So I was wondering about something... the Windows Task Manager shows how much memory each process is using. How relieble that value is? Does it reflect the ammount of memory the program uses on a PDA?
----------------------------------------------------
EDIT: Haha, I'm so dumb. I was getting negative values because I was subtracting cur_mem-initial_mem instead of the opposite. Please forgive me XD