[redland-dev] Patch: Log handler uses wrong user_data

Edd Dumbill edd at usefulinc.com
Thu Jul 8 21:37:18 BST 2004


On Thu, 2004-07-08 at 22:20 +0200, René Puls wrote:
> I also have a question regarding this log handler... If I'm using
> Redland from a language like Objective-C, is it safe to throw an
> exception inside the handler? This would interrupt normal execution,
> so any Redland-internal code that follows the librdf_log_simple() call
> would never be reached.

I was just talking about this with Dave now, as I'm studying how to get
error reporting into the C# API.  The basic answer is "no".  You simply
have to store up the exceptions you get and then process them at the end
of the call to the Redland function.

-- Edd





More information about the redland-dev mailing list