在设计时加载图像(图标)时的 EOutOfResources
我试图在 Delphi IDE(设计时)中将图像加载到具有图像属性的控件中,例如 TTrayIcon 的图标、TImage 的图片,但是当我选择图像时,它给了我一个“系统资源不足”错误在文件对话框中。
这是“加载图像”对话框,所以您知道我在说什么。
我有超过 1 GB 的可用内存,并且我已经重新启动了几次,此后我只打开了 Delphi,但它不帮助..
此外,这只发生在这个项目中。
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您实际上没有资源不足,那么通常会发生这种情况,因为图像文件太大而无法在解码后装入内存,或者文件中存在一些损坏,使 Delphi 认为它比应有的大。尝试在 Paint.Net 等图像程序中打开它,确保它不是太大,然后重新保存。
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.