Bug 23069 – Visual Studio crashing when debugging Win32 VARIANT data type

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2022-04-28T11:32:03Z
Last change time
2022-06-05T09:11:10Z
Assigned to
No Owner
Creator
David Sansom

Comments

Comment #0 by info — 2022-04-28T11:32:03Z
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.
Comment #1 by r.sagitario — 2022-04-29T06:06:47Z
Thanks for the report, fixed in https://github.com/rainers/mago/commit/0b2ce787114a71b4088ebf14eb922c5b3c46f5be It will be included in the upcoming release.
Comment #2 by r.sagitario — 2022-06-05T09:11:10Z