Silent error when using hashmap

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 26 15:07:22 PDT 2017


On Wednesday, 26 July 2017 at 16:09:30 UTC, FatalCatharsis wrote:
> 
>
> When I compile this and run this, nothing is printed and no 
> window is created. I've tried putting try catches around 
> everything (including the inside of the static constructor), 
> but nothing is caught.
>
You're casting this to void*, which is correct, but then when you 
fetch it back you're casting to a WinThing*, which is not 
correct. this is a reference, not a pointer. Cast to WinThing 
instead of WinThing*.


More information about the Digitalmars-d mailing list