Visual patterns in memory?

前端 未结 2 1809
迷失自我
迷失自我 2021-02-01 05:00

Started up remote debugging a C++ project today on a Win 7 machine running in VMWare and was astonished to see the following pattern on a random memory location:

2条回答
  •  无人共我
    2021-02-01 05:22

    It looks like a rendered mask for a font (each character in a font (typeface+size+style) is rendered once in-memory, then blitted to the output surface) using 8bpp, which suggests you've got font anti-aliasing enabled.

    I'm assuming your project involves a GUI, you might be looking at a shared-memory area that GDI uses for storing rasterized fonts.

    If not, then this might just be leftover memory from a previous process or OS component that wasn't zeroed before being used by your application.

提交回复
热议问题