All statements are based on LCMS 1.1.6, so it may be that things have changed
in 1.1.7 ...
I've changed the transform creation from using the cmsFLAGS_NOTPRECALC flag to
using 0 instead. I am doing (in unit tests) some conversions XYZ - Lab using
a transformation vs. using the cmsXYZ2Lab()
XIAOCAO,
did you test all the intermediate results for existence, e.g.
if(!hInProfile) {
error = 1; exit error; }
and so on.
The next would be to look at the input and output buffers content.
Step 5, personally I never needed.
kind regards
Kai-Uwe Behrmann
--
developing for colour management