- This topic has 14 replies, 6 voices, and was last updated 1 year, 8 months ago by Support.
-
AuthorPosts
-
September 7, 2022 at 7:27 pm #71000LasseParticipant
– Create New Windows VCL application
– Add SkinManager to form
– Set SkinDirectory and SkinName
– Add Windows 64-bit Target platform (if it does not exist) and select it
– Run=> “Stream read error”
32-bit run works fine.
Is this AlphaSkin or Delphi issue? I see that the System.Classes.TStream has been fixed lately…
September 9, 2022 at 6:11 pm #71001LasseParticipantThis seems to be ZLib issue. AlphaSkins is using acZLibEx for 32-bit and it is working. If current ZLib is used 32-bit will break as well.
September 9, 2022 at 6:36 pm #71002LasseParticipantAs a workaround before fix you can use for example https://github.com/fundamentalslib/fundamentals5/tree/master/Source/ZLib
It works on both 32-bit and 64-bit.
Just comment out current use of ZLib in sSkinManager.pas:
//{$IFNDEF WIN64} // acZLibEx, //{$ELSE} // ZLib, //{$ENDIF} ZLibEx,
September 14, 2022 at 10:53 am #71010jenswahlParticipantI have only the compiled version without sSkinManager.pas. What can I do? I always posted the error to Serge.
September 14, 2022 at 4:08 pm #71011LasseParticipantYou can’t do anything without a source code. I am sure this will be fixed as soon as possible. The situation in Ukraine looks promising.
September 15, 2022 at 10:59 am #71014jenswahlParticipantThank you. I also hope that this insane war will end very soon.
September 15, 2022 at 9:54 pm #71015NormAtHomeParticipantLasse:
I followed your instructions I did manage to get it to work, it compiled and my program ran so it seems like for 11.2 it’s now working.
September 17, 2022 at 8:32 am #71016LasseParticipantI haven’t noticed any errors so far.
I use now ZLib version 1.2.8 from https://www.base2ti.com/
I know it’s not the latest ZLib version but it works. It would be also possible to rip ZLib from previous Delphi version. Maybe do some comparing to the 11.2 version, find the actual “bug” from it, and report it.
Btw. there is also two other units using ZLib in AlphaSkins. I changed those too like:
acAlphaHints:
//{$IFNDEF WIN64} acZLibEx, {$ELSE} ZLib, {$ENDIF} ZLibEx,
acPNG.pas:
//{$IFNDEF WIN64}acZLibEx, {$ELSE}ZLib, {$ENDIF} ZLibEx, ZLibExApi,
September 20, 2022 at 1:24 pm #71019chris2023ParticipantThere is also a curious behave when using the Alphacontrols Editors.
e.g Boundslabel Editor (Caption), sDecimalSpinEdit (Boundlabel Editor), TsFontstore Fonts-Editor)
Its a extreme Flickering , after that all Delphi Windows a empty( eg Structur, Palette and so on)
That happened only on x64.
Looks like Alphacontrols are then in a extremly Repaint Loop.September 25, 2022 at 11:50 am #71023LasseParticipantI noticed that scaling is not working with imagelists in 64-bit…
Attachments:
You must be logged in to view attached files.September 25, 2022 at 5:50 pm #71025LasseParticipantI had to revert back to Delphi 11.1 (without patch 1). That is still the latest Delphi version fully working with AC.
September 27, 2022 at 8:04 am #71028wessonParticipantIt’s indeed a Zlib issue.
The input stream is read buffered by chunks of 64 K. Therefore when the decompression is done (Z_END status), the input stream is not positioned right after the compressed data. As in the skins all the data is just concatenated,
Once the 1st decompression is done the source stream does not point to the next chunkIt can be solved in System.Zlib with the following (line 2752)
if (zresult = Z_STREAM_END) and (FZStream.avail_in > 0) then begin Dec(FStreamPos, FZStream.avail_in); Fstream.Position := FStreamPos; FZStream.avail_in := 0; end;
It’s a flaw either in the design of the alphaskin storage (no table of offsets), and in the Delphi RTL which should take care of repositioning the input stream to the byte after the last input byte read.
September 27, 2022 at 8:19 am #71029wessonParticipantI have exactly the same issue. Under 64 bits Alphaskin is just not usable.
Here is what I have
Attachments:
You must be logged in to view attached files.September 28, 2022 at 12:35 pm #71035LasseParticipantI think it is a flaw in skin package. Unfortunately there isn’t a source for Skin editor.
March 12, 2023 at 6:48 pm #71141SupportKeymasterHello!
The AlphaControls package v17 has been released today, the issue with crashing has been solved there. -
AuthorPosts
- You must be logged in to reply to this topic.