[Issue 23069] New: Visual Studio crashing when debugging Win32 VARIANT data type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 28 11:32:03 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23069

          Issue ID: 23069
           Summary: Visual Studio crashing when debugging Win32 VARIANT
                    data type
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: visuald
          Assignee: nobody at puremagic.com
          Reporter: info at elkpoint.co.uk

Visual D 1.3, DMD compiler
Visual Studio Professional 2022 (64-bit) v 17.1.1
Windows 10


I have created a D console app, with this minimal code:

module VariantTesting;

import core.sys.windows.oaidl;

int main()
{
    VARIANT v;

    return 0;
}

I can compile and run this under Debug x64. But if I set a breakpoint on the
`return 0;` line, and start debugging, the breakpoint is hit, but after a few
seconds Visual Studio crashes (without any exception details).

One clue might be that the 'Locals' window has a 'Busy' message in it, before
Visual Studio disappears.

This leaves me struggling to write any COM code without using the VARIANT
datatype!

I have other code using `oaidl` and other COM modules which was running (and
debugging) fine until I tried to use VARIANT.

--


More information about the Digitalmars-d-bugs mailing list