Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hey,

I suggest you to have a look at your RAM. If it is increasing while the program is running then it must be a problem with the memory allocation.

Since you are running this in a loop, I would suggest that you pre - allocate your memory before beginning the loop and only modify it within the loop. Maybe re - declaring it every time is the problem.(the "new" statement every time might be the problem. It is being reallocated in a different memory than overwriting it and the previous memory is not being released by the program)

Hope this helps.

Regards, Prasanna S