On Fri, 06 Jun 2008 9:01:41 pm Kai-Uwe Behrmann wrote: > The lcms(.h) error handler is: > typedef int (* cmsErrorHandlerFunction)(int ErrorCode, const char > *ErrorText); > > LCMSAPI void LCMSEXPORT cmsSetErrorHandler(cmsErrorHandlerFunction Fn);
Yepp, I'm aware of that. > Cant you raise the exception simply in the cmsErrorHandlerFunction > provided by you, by checking ErrorCode and reacting on LCMS_ERRC_ABORTED? Once I do this from one part in my program, another part of the program (e. g. in a different thread) would overwrite the error handler or it wouldn't receive any exceptions, as the other registered error handler function would. Plus the error handler would be detached of the context of the calling instance, rather than that the context itself could handle what to do in case of errors. Or did I misunderstand something there? It's at least not compatible with any OO paradigms as far as I got it. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Putaiao o Mohiohio me Pangarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: [EMAIL PROTECTED] http://iims.massey.ac.nz
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user