MetaFIle
-
hi all, Listen i got a problem and i don't know it's cause. when i run that piece of code: grf = Graphics.FromImage(metafile); //do what ever i want with grf grf.Dispose(); grf = Graphics.FromImage(metafile); i got an out of memory exception. i realized that if i created a graphic object twice from metafile i got that exception.by the way when i use normal image not metafile it works. i wanna know why that with metafiles? marcoryos
-
hi all, Listen i got a problem and i don't know it's cause. when i run that piece of code: grf = Graphics.FromImage(metafile); //do what ever i want with grf grf.Dispose(); grf = Graphics.FromImage(metafile); i got an out of memory exception. i realized that if i created a graphic object twice from metafile i got that exception.by the way when i use normal image not metafile it works. i wanna know why that with metafiles? marcoryos
This is a common GDI+ error. I think you need dispose & 'reload' the metafile OR NOT call dispose on grf. Silly isnt it.... xacc.ide-0.1.1.4 - now with LSharp integration and scripting :)