开发者

EOutOfResources when loading image (icon) in design-time

I am trying to load an image into a control that has an image property, like TTrayIcon's Icon, TImage's Picture, in the Delphi IDE (design time), but it gives me an "Out of system resources" error when I have selected my image in the File dialog.

This is the Load Image dialog, so you know what I'm talking about.

EOutOfResources when loading image (icon) in design-time

I got over 1 GB free memory, and I have rebooted several times, whereafter I only 开发者_开发问答open Delphi, but its not helping..

Also, it's only happening for this one project.


If you're not actually out of resources this generally happens either because the image file is too large to fit in memory once it's been decoded, or there's some corruption in the file that makes Delphi think it's larger than it should be. Try opening it in an image program like Paint.Net, make sure it's not too large, and resave it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜