c# 释放资源问题
IntPtrhIcon=IconHelp.GetJumboIcon(IconHelp.GetIconIndex(ImagePath));System.Drawing.Ic...
IntPtr hIcon = IconHelp.GetJumboIcon(IconHelp.GetIconIndex(ImagePath)); System.Drawing.Icon fileIcon = (Icon)System.Drawing.Icon.FromHandle(hIcon).Clone(); return Image.FromHbitmap(fileIcon.ToBitmap().GetHbitmap());我每重复加载一次图标就要占十几兆内存,麻烦哪位大仙帮帮我,谢谢!如何才能释放掉这里占内的内存! Icon fileIconb = linchao.GetDirectoryIcon(); return Image.FromHbitmap(fileIconb.ToBitmap().GetHbitmap());还有这个,请问怎么释放,谢谢了!
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询