**System Information**
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Compiler: VS 2019 / MSVC v142
**Blender Version**
Broken: master - debug build
Works: master - release build
**Short description of error**
In debug builds, using dynamic enum properties which items rely on ID data-blocks leads to invalid memory access.
The exact same code works in a release build.
**Exact steps for others to reproduce the error**
- Open the attached .blend file with a debug build.
- Run the script.
- Displayed dynamic enum values shows invalid memory access.
Debug build:
{F12994938}
Release build:
{F12994949}