Visual patterns in memory?

旧巷老猫 提交于 2019-12-31 08:57:15

问题


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:

Who might code this (it's not me!) and for what reason?? Just curious if anyone has seen something like this.


回答1:


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.




回答2:


It's hard to say. Possibly memory used to buffer some fonts (in this case, zeros), or even buffered printer or screen content.



来源:https://stackoverflow.com/questions/12309838/visual-patterns-in-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!