开发者

Delphi 6 / 7 Access Violation on TImage design time load

开发者 https://www.devze.com 2023-02-23 05:56 出处:网络
I\'m trying to load a jpg file which is 604KB big 开发者_如何学运维into a TImage component on a vanilla TForm but the load causes it to fail with an access violation:

I'm trying to load a jpg file which is 604KB big 开发者_如何学运维into a TImage component on a vanilla TForm but the load causes it to fail with an access violation:

Access violation at address 402372AD in module vcljpg60.bpl. Write of address 0904000

I just tried it in Delphi 7 and the same is true except the vcl is 70 instead of 60 and the address is slightly different

Does anyone know of a bug in Delphi around jpg files?

Many thanks for any input on this cheers Colin


maybe you problem is due to the colorspace of your JPEG file. Delphi has issues displaying JPEG images that have been encoded using CMYK instead of RGBencoding.

Check this Enhanced JPEG implementation which fix the problem with the CMYK colorspace. also you can check this similar question Problem with showing some JPG files in Delphi.

0

精彩评论

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