[Lazarus] Strange issue with TImage and lazarus 2.2.2

Luca Olivetti luca at wetron.es
Tue Jul 23 13:39:34 CEST 2024


El 30/6/22 a les 14:47, Luca Olivetti via lazarus ha escrit:
> El 30/6/22 a les 13:45, Luca Olivetti via lazarus ha escrit:
> 
>> I'm puzzled: now I removed the vampyre lib from the ide, in a form I 
>> need ImagingComponent and ImagingClassed.
>> I drop a TPicture with a png image and it is blank at runtime.
>> This time it is streamed as TPortableNetworkGraphic *but* 
>> FindClassName cannot find it.
>> How is that possible?
> 
> 
> AAAAAAAGH Because the Vampyre library explicitly deletes it
> 
>    {$IFDEF COMPONENT_SET_LCL}
>      // Unregister Lazarus´ default PNG loader which crashes on some PNG 
> files
>      TPicture.UnregisterGraphicClass(TPortableNetworkGraphic);
>    {$ENDIF}


Two years later I forgot about this issue and I found it again with 
lazarus 3.2 and a freshly downloade vampyre imaging library (which is 
still at version 0.80 in the online package manager, though I see that 
the line is still there in the github repository).

Probably my fault for not reporting the issue to  Vampyre, I just hope 
my memory serves me better next time.

Bye

-- 
Luca Olivetti
Wetron Automation Technology https://wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007



More information about the lazarus mailing list