gpt4 book ai didi

c# - "Parameter is not valid"从 System.Drawing.Graphics.GetHdc() 抛出——仅在某些机器上

转载 作者:太空狗 更新时间:2023-10-29 21:36:38 24 4
gpt4 key购买 nike

我遇到了这个错误“Parameter is not valid”,它是从

抛出的
System.Drawing.Graphics.GetHdc()

奇怪的是,它只在一台机器上抛出这个错误,而在其他机器上不会。

抱歉含糊不清,你有什么办法可以解决这个问题吗?

最佳答案

看看这是否适用于您? Parameter is not valid

You'll find that your problem is caused by a GDI leak. Open up TaskManager and if the Processes Tab does not have a GDI objects column then add it via the View menu. You should then see that the GDI Objects keep growing until eventually your app falls over. Once you add the DeleteDC() call you should see that the GDI Objects stays fairly constant.

关于c# - "Parameter is not valid"从 System.Drawing.Graphics.GetHdc() 抛出——仅在某些机器上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3818440/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com