Relative Content

Tag Archive for c++ofstream

ofstream causing memory increase

This is a mini test. The memory used by this C++ program increases from 1KB to 10MB while writing a string to a file. It seems that ofstream didn’t release its memory after append.

std::ofstream causing memory increase

This is a mini test. The memery used by this cpp program increase from 1KB to 10MB while writing string to a file. It seems that ofstream didn’t release it’t memery after append.