>> CMSAPI cmsIOHANDLER*  CMSEXPORT cmsGetProfileIOHandler(cmsHPROFILE* 
>> profile);

Doing that would return only a pointer to the iohandler owned by the 
cmsHPROFILE
object, therefore when the profile got closed the pointer will point to 
hyperspace.

If you use that in a copy constructor, the profile would become corrupt 
when you
close the first instance. Instead, you could either store the file name 
and memory block
along with the original profile handle or use reference counting, which 
IMHO is the
best and easier option.

Regards
Marti


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to