On 17/09/2012 23:13, Andrej Mitrovic wrote:
On 9/17/12, Simon <[email protected]> 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

Reply via email to