[Issue 1693] New: D DLLs do not support exceptions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 25 06:32:31 PST 2007


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

           Summary: D DLLs do not support exceptions
           Product: D
           Version: 1.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: daniel.keep+d.puremagic.com at gmail.com


If an exception crosses the boundary between a DLL and its host, it causes the
program to crash out to a system dialog.  This effectively makes D-based DLLs
useless, unless you wrap every single call in try/catch.  This throws a rather
large stick in the spokes of getting Phobos into a DLL.

At a minimum, the web page on doing DLLs in D should be updated to explicitly
state this limitation.

Will attach a complete test case presently.


-- 



More information about the Digitalmars-d-bugs mailing list