Thanks for replay.
I have a filling that it is not OS related issue. Looks like IM use its own memory allocation mechanism. And it is not free it it and keep it for reuse. I don`t want to use cache it is to slow for my case(I`m processing 100s of images ).
Search found 2 matches
- 2012-09-11T05:04:12-07:00
- Forum: Magick++
- Topic: Memory usage problem
- Replies: 2
- Views: 8910
- 2012-09-11T04:47:07-07:00
- Forum: Magick++
- Topic: Memory usage problem
- Replies: 2
- Views: 8910
Memory usage problem
Hi everyone!
I have folowing code.
i nt main(int argc, char *argv[])
{
Image* arr[256];
for(int i = 0; i < 256; i++)
{
Image* t = new Image(_pictures_background);
t->read("files/1.png");
arr[i] = t;
}
std::string str;
cout << "Memory allocated. Press enter key to continue...";
cin ...
I have folowing code.
i nt main(int argc, char *argv[])
{
Image* arr[256];
for(int i = 0; i < 256; i++)
{
Image* t = new Image(_pictures_background);
t->read("files/1.png");
arr[i] = t;
}
std::string str;
cout << "Memory allocated. Press enter key to continue...";
cin ...