On 15.06.2011 2:23, Andrej Mitrovic wrote:
On 6/15/11, Dmitry Olshansky<[email protected]>  wrote:
I think generic 'windows sample' is _not_ about null pointer dereference
Actually there's another problem. In WinMain, this line:
     catch (Exception e)         // catch any uncaught exceptions

should be:
     catch (Throwable e)         // catch any uncaught exceptions

That way when a null is dereferenced you'll have the exception caught
and get a nice error message. That's what this sample was supposed to
demonstrate. I'll have it updated and make a pull.

Makes sense. I'd better stop arguing this cause, and read more on that awesome DIP11 ;)

(though arguably one can consider Windows as a whole an example on GP
fault and null pointer dereference in particular).
I don't follow.
nvm, a pun that apparently out of date.

--
Dmitry Olshansky

Reply via email to