开发者

C# How to track down a font disposal

开发者 https://www.devze.com 2022-12-11 23:12 出处:网络
I have a font which is being disposed of which is causing an exception and I can\'t find where the font is being disposed.I have a feeling it is being disposed of开发者_如何学Go by print preview.Can s

I have a font which is being disposed of which is causing an exception and I can't find where the font is being disposed. I have a feeling it is being disposed of开发者_如何学Go by print preview. Can someone recommend how to track this issue down?

Thanks.


You could try to set a breakpoint in Font.Dispose:

Configuring Visual Studio to Debug .NET Framework Source Code

I'm not sure if the particular source code for the Font class is included, but you could give it a try.

0

精彩评论

暂无评论...
验证码 换一张
取 消