Kindo Malay
Kindo Malay

Reputation: 237

Delphi 6 / 7 Access Violation on TImage design time load

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

Upvotes: 3

Views: 1280

Answers (1)

RRUZ
RRUZ

Reputation: 136431

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.

Upvotes: 4

Related Questions