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

I think Don has been busy doing that. MSDN says the exceptions are
passed to "higher-level handlers":
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633573%28v=vs.85%29.aspx

I did have to compile with -g and run the .exe through cv2pdb before
the stacktrace printed proper files and lines.

Also sorry for my harsh words I was in a bad mood yesterday. :)


No worries; I'm sure that the main reason (apart from pron) why the internet is so popular is just for people to vent their spleen!

I've just gone though my ATL port and taken out the special exception handling I had in and it just works.

It's even got a full stack backtrace, w/ DMD 2.058 :)

Cool. I never did like that special handling.

Though to go back to the OPs question then, that nothrow attribute is clearly erogenous now. Mind you I've never used the phobos provided win32 bindings as they were pants.

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

Reply via email to