www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23069] New: Visual Studio crashing when debugging Win32


          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 puremagic.com
          Reporter: info 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

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

Apr 28 2022