Error: WndProc - nothrow

Simon s.d.hammett at gmail.com
Tue Sep 18 10:28:10 PDT 2012


On 17/09/2012 23:13, Andrej Mitrovic wrote:
> On 9/17/12, Simon <s.d.hammett at gmail.com> wrote:
>> You MUST NOT allow a D exception to
>> propagate out of the wndproc (or indeed any other Win32 callback
>> function) as the Win32 calling code has no idea how to process it and
>> you'll just get a crash.
>>
>
> That's just complete and utter bullshit. A try/catch can be set in
> WinMain, and any thrown exceptions in WndProc will propagate there.
>
> Code:
> http://dpaste.dzfl.pl/84293982
>
> Screenshot:
> http://i.imgur.com/r5wJh.png
>

Hmm, didn't work for me when I ported the Atl windowing stuff.
And it doesn't work in VC++.

Have they changed D exception mechanism to use Structured exception 
handling?

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d-learn mailing list