weird exception on windows

Mengu mengukagan at gmail.com
Mon Dec 18 21:46:16 UTC 2017


On Saturday, 16 December 2017 at 14:05:28 UTC, Vino wrote:
> On Saturday, 16 December 2017 at 13:59:11 UTC, Vino wrote:
>> On Saturday, 16 December 2017 at 12:39:53 UTC, Kagamin wrote:
>>> [...]
>>
>> H, All,
>>
>>   Are are also getting the same exception on Windows after 
>> updating the dmd to version v2.077.1, our code was working 
>> fine for the past 2 months, the exception is just crashes the 
>> program, and it occur's every 1 time  among in 3 runs. As per 
>> Microsoft it stated to download the package apps.diagcab and 
>> execute, but still no luck.
>>
>> ExceptionCode: C0000005
>>
>> From,
>> Vino.B
>
> Moreover we were able to find the line of code which was 
> causing this exception
>
> string a = "1"
> a.to!int.isNumber /* exception is occurring at this point.
>
> From,
> Vino.B

the compiler might be parsing the expr like (a.to!(int.isNumber)) 
so it becomes a.to!bool.


More information about the Digitalmars-d-learn mailing list