windows – GDI背景线程做什么?

前端之家收集整理的这篇文章主要介绍了windows – GDI背景线程做什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
初始化时,GDI(非.NET)创建一个后台线程,可以选择禁止调用一些钩子函数.然而,MSDN并没有说明这个线程实际上是做什么的. Google似乎也不知道.

这是什么

This thread提供了一般的解释:

GDI+ spins up a background thread as soon as you start manipulating images. It’s name doesn’t provide much of a hint what it does,“BackgroundThreadProc()”. This is pretty common in Microsoft libraries. Some sort of internal management thread,probably has something to do with memory management or threading. It creates a hidden window,that’s classic too.

Nothing to worry about,everything is normal. Including the exit code.

FWIW,this thread建议禁止背景线程:

If you do not suppress the background GDI+ thread,DDE commands can be prematurely issued to the application before its main window has been created. The DDE commands issued by the shell can be prematurely aborted,resulting in error messages.

猜你在找的Windows相关文章