alias this and null reference

Namespace rswhite4 at googlemail.com
Fri Apr 27 11:12:21 PDT 2012


On Friday, 27 April 2012 at 18:01:55 UTC, Namespace wrote:
> On Friday, 27 April 2012 at 17:51:13 UTC, Namespace wrote:
>> On Friday, 27 April 2012 at 17:47:48 UTC, Jonathan M Davis 
>> wrote:
>>> On Friday, April 27, 2012 19:38:34 Namespace wrote:
>>>> I read about "collectExceptionMsg". Maybe that is a possible
>>>> solution to catch Access Violations?
>>>
>>> Access violations / segfaults aren't exceptions. They're OS 
>>> signals. You can't
>>> catch them.
>>>
>>> - Jonathan M Davis
>>
>> I forget...
>> But it should me possible to catch the "null this" message.
>
> That does what i wanted. Thank you two. :)
>
> static this() {
> 	onAssertErrorMsg(__FILE__, __LINE__, "Object is null!");
> }

Sorry for triple post. I was too early. I get the Message "object 
is null" any time, with, and without thrown asserts.



More information about the Digitalmars-d-learn mailing list