Hello Michael,
 
> Problem: I only get a handle to the "transform", thus I do not know  
> the size of each, nor the total size of all in the cache. Is there a  
> way that I can get the size (in bytes) of a "transform" that was  
> created?

The internal structure of a transform is not a fixed memory block
but a bunch  memory chunks and pointers... also it hardly depends
on the nature of ICC involved, the rendering intent, etc.


With today's operating system, I think a limit on memory size is
not very realistic, I would instead limit the number of color
transforms, for example, but anyway if you want to know the exact
number of bytes, it can be done by replacing the memory allocators.

The test bed program testcms2.c does exactly that to detect memory
leaks, you could use a similar approach.

Regards
Marti


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to