All along, earlier this week, I was fighting a MemoryAccessViolation at the
time of calling cmsDoTransform(HANDLE, InputBuffer, OutputBuffer, Size).

Then I started experimenting with very small images, like 1 pixel wide x 1
pixel high. 

All of a sudden, the MemoryAccessViolation was gone!

So I used larger and larger image sizes, 4x4, 16x16, 64x64 -- everything was
working.

So I went back to my original RGB test image, 864 pixels wide x 288 pixels
high, and BANG!, that MemoryAccessViolation again?

So I decreased the image size down progressively :

1 -  288 x 288   -> didn't work?
2 -  256 x 256  -> didn't work?
3 - 128 x 128 -> Victory!!! 

The image size is 48 kilobytes, thus passing 49,512 bytes in memory to
cmsDoTransform.

Maybe there is a buffer size built-in "upper limit" that can be managed by
.NET?

I hate to have to break the image in chunks...

Best / Roger


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to