visuald icon indicating copy to clipboard operation
visuald copied to clipboard

void* shows 0x0000000000 in debugger

Open TurkeyMan opened this issue 5 months ago • 10 comments

I've started writing some code, fresh VS install, latest version. I'm noticing heaps of regressions in general. Stability is just not where it used to be.

Here's one for now:

    HANDLE hCom = INVALID_HANDLE_VALUE;
    hCom = CreateFile("COM3\0"w.ptr, GENERIC_READ | GENERIC_WRITE, 0, null, OPEN_EXISTING, 0, null);
    if (hCom == INVALID_HANDLE_VALUE)
    {
        writeln("CreateFile failed with error %d.\n", GetLastError());
        return;
    }

Step through that code; notice that hCom says 0x0000000000000000 at all times no matter what the actual value. You can see the real value with:

    size_t x = cast(size_t)hCom;

And then hover x, and you'll see the proper value.

Also notice that the hovering over the enum INVALID_HANDLE_VALUE does not show its value. Hovering enum's like this used to work.

TurkeyMan avatar Jan 07 '24 06:01 TurkeyMan