windows - GDI+后台线程有什么作用?

标签 windows multithreading gdi+

初始化时,GDI+(非 .NET)创建一个后台线程,可以选择性地抑制它以调用一些 Hook 函数。然而,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 - GDI+后台线程有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2736939/

相关文章:

compact-framework - 在 CF.NET 中创建大位图时出现 OutOfMemoryException

windows - Windows 上的 svn 客户端非常慢,Linux 上的 svn 客户端非常快

windows - VB - 以隐式方式链接 DLL

windows - 文件名中的批处理命令日期和时间

c++ - 使用 GDI+ 和 C++ 将 JPEG 编码的屏幕截图保存到缓冲区

.net - GDI+ 用这个 "generic error"害死我了

Windows 中的代码未更新

logging - 如何使用 Log4Net 登录每个线程的单独文件?

java - java中一个线程的输入来自另一个线程的无限等待

python - QObject::connect:无法在 PySide 中对类型 'object' 的参数进行排队