[Issue 2319] New: "Win32 Exception" not very useful
Don
nospam at nospam.com.au
Fri Aug 29 07:35:00 PDT 2008
d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=2319
>
> Summary: "Win32 Exception" not very useful
> Product: D
> Version: unspecified
> Platform: PC
> URL: http://msdn.microsoft.com/en-
> us/library/aa363082(VS.85).aspx
> OS/Version: Windows
> Status: NEW
> Keywords: EH
> Severity: enhancement
> Priority: P3
> Component: Phobos
> AssignedTo: bugzilla at digitalmars.com
> ReportedBy: nnbkxozgitfef at mailinator.com
>
>
> Currently _d_translate_se_to_d_exception() translates almost any Win32 SE
> (except for divide by zero, access violation and stack overflow) into a simple
> D Exception with the message set to "Win32 Exception" and no hint what the
> original exception was or where in the application the exception was raised.
> This is not at least helpful if you want to locate a bug.
>
> At least D should differentiate between the exceptions here:
> http://msdn.microsoft.com/en-us/library/aa363082(VS.85).aspx
> ...or better get a copy of the original EXCEPTION_RECORD structure, or perhaps
> the most significant members like ExceptionCode and ExceptionAddress.
I added the two most useful ones (DATATYPE_MISALIGNMENT and
ARRAY_BOUNDS_EXCEEDED) into my copy of Phobos1 and committed it by
mistake. The misalignment one is a *huge* help for rapidly debugging SSE
(asm array operations for example <g>) so I'll leave Walter to take it
out or copy it to Phobos2.
More information about the Digitalmars-d-bugs
mailing list