Memory Out
Memory Out
I'm trying to open the following file.
This file contains 250 images.
But the following error occurs:
Already tried using:
SRichViewEdit1.LoadRVF(Caminho);
and:
rvActionOpen1.LoadFile(SRichViewEdit1.RichViewEdit, Caminho, ffiRVF);
This file contains 250 images.
But the following error occurs:
Already tried using:
SRichViewEdit1.LoadRVF(Caminho);
and:
rvActionOpen1.LoadFile(SRichViewEdit1.RichViewEdit, Caminho, ffiRVF);
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The current version of TRichView loads all images in memory, creating graphic objects for them.
Unfortunately, this problem cannot be solved in the current version of TRichView.
If the document has many identical pictures, some optimizations are possible, but if all pictures are different, this problem is unavoidable.
In future versions, we plan to optimize memory usage for pictures, graphic objects will be created only for the most recently used pictures. But I cannot tell when it will be implemented, sorry.
Unfortunately, this problem cannot be solved in the current version of TRichView.
If the document has many identical pictures, some optimizations are possible, but if all pictures are different, this problem is unavoidable.
In future versions, we plan to optimize memory usage for pictures, graphic objects will be created only for the most recently used pictures. But I cannot tell when it will be implemented, sorry.
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The whole content of a file is loaded in memory, it is unavoidable.
The only thing that can do is optimizing working with images. TGraphic object can be created only for several recently used images. For other images, it can be created on demand.
For small documents, it will increase memory usage, because we need to store image both in TGraphic object and in a memory stream. But documents containing many images will require much less memory and resources.
The only thing that can do is optimizing working with images. TGraphic object can be created only for several recently used images. For other images, it can be created on demand.
For small documents, it will increase memory usage, because we need to store image both in TGraphic object and in a memory stream. But documents containing many images will require much less memory and resources.
-
- Site Admin
- Posts: 17561
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
It may be caused either by memory leak or by a bad memory manager in the old version of Delphi.
There are no known memory leaks in the newest version of TRichView.
To understand the problem, I need your file. You can upload it (zipped) to some web server and give me a link. If you need, I can give you ftp account on trichview.com to upload this file.
There are no known memory leaks in the newest version of TRichView.
To understand the problem, I need your file. You can upload it (zipped) to some web server and give me a link. If you need, I can give you ftp account on trichview.com to upload this file.