나는이 메시지 수단 (관리되지 않는 리소스를 폐기 할 필요가) 무엇을 이해하지만 내 경우에 발생하는 이유를 정말 이해가 안 :이 경우일반 오류는 GDI에서 발생 + 다시
System.Drawing.Image imgAnimaha, imgNoanimaha;
using (System.IO.Stream file = thisExe.GetManifestResourceStream("WindowsApplication1.img.noanimaha135.gif"))
{
using (System.Drawing.Image img = Image.FromStream(file))
{
imgNoanimaha = (System.Drawing.Image)img.Clone();
}
}
using (System.IO.Stream file = thisExe.GetManifestResourceStream("WindowsApplication1.img.animaha135.gif"))
{
using (System.Drawing.Image img = Image.FromStream(file))
{
imgAnimaha = (System.Drawing.Image)img.Clone();
}
}
pbDiscovery.Image = imgAnimaha;
나는 "GDI +에서 일반적인 오류가 발생했습니다"왜 그리고 어떻게 해결할 수 있습니까? PS. 다음 글을 쓰면 :
pbDiscovery.Image = imgNoanimaha;
올바르게 작동합니다.
using (System.Drawing.Image img = Image.FromStream(file))
{
imgAnimaha = (System.Drawing.Image)img.Clone();
}
... 깊은을 생성하지 않습니다
다른 비트 맵으로 시도해 보셨습니까? –