chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] srfi-18 and dynamic wind problem


From: Hans Bulfone
Subject: Re: [Chicken-users] srfi-18 and dynamic wind problem
Date: Mon, 7 Apr 2008 03:06:25 +0200
User-agent: Mutt/1.5.16 (2007-06-09)

hi,

On Sat, Apr 05, 2008 at 10:41:31PM -0600, Jim Ursetto wrote:
> I'm seeing some odd behavior when using dynamic-wind within a thread.
> If an error occurs during the thunk, the 'after' portion is never
> called nor are any subsequent statements. thread-join! then throws
> an exception.
> 
> Can anyone shed light on this?  It is causing problems with the
> sqlite3 egg.

i've had similar problems without threads.

i think the default exception handler doesn't unwind the call stack
but simply (exit)s / terminates the thread.

it worked for me when i used handle-exceptions (which unwinds the
call stack before the exception handling code runs) around my main
function.

hth&bye,
hans.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]