[Issue 1513] try/catch/finally misbehavior on windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 13 13:22:25 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=1513



--- Comment #10 from Don <clugdbug at yahoo.com.au> 2010-12-13 13:20:36 PST ---
I'm not sure that this is a compiler bug. It may be druntime.

With this change:

----
deh.c, _d_framehandler(), line 210

+            else if (prev_ndx == -1)
+            {   // Exception didn't get caught.
+                // Call all the finally blocks skipped in this frame
+                _d_local_unwind(handler_table, frame, ndx);
+            }
        }
    }
    return ExceptionContinueSearch;
----

the finally clauses are called correctly. This isn't a correct patch, 
but I think it demonstrates that the exception tables are set up reasonably
correctly. I couldn't find anything wrong with them.
My limited understanding of exception handling is based on this article:
http://www.microsoft.com/msj/0197/exception/exception.aspx

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list