Jeff
Jeff

Reputation: 12183

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.

Image Dialog

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.

Upvotes: 2

Views: 1484

Answers (1)

Zoë Peterson
Zoë Peterson

Reputation: 13332

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.

Upvotes: 4

Related Questions