Re: [Lcms-user] cmsCreateTransform(): Unclear error message
An ICC-based CMM for color management
Brought to you by:
mm2
From: flap <fb...@oh...> - 2023-12-21 22:35:37
|
Hi Marti, mar...@li... wrote: > > It only happens (e.g. the error message) in my final application. The same > > piece of code works in my test program (which does at most the same, same > > PNG file, same output definition). > > This is memory corruption. Maybe you have closed the input or output > profiles before calling cmsCreateTransform? No, both profiles are still open. > The snipped you send is correct, used in many different places with no > problems. Could you run your program under a memory checker, valgrind or > visual studio sanitizer, for example? My programs run with ASAN enabled. Most of the time it triggers in a reliable manner if the memory gets corrupted. Here not - yet. I will try with valgrind. Thanks, Jürgen |