Forum Replies Created
-
AuthorPosts
-
LasseParticipant
I can confirm this issue is happening with the latest version. I will try to fix it.
LasseParticipantHave you tried to recreate your project file? If it works, you can compare what is causing the issue.
July 27, 2023 at 8:24 am in reply to: TsSkinProvider.PaintAll -> GDIError (EOutOfResources = out of memory) #71293LasseParticipantThat said… for example find “CreatePen” from AlphaSkins source and you will find a leak in sGraphUtils.pas:
SelectObject(DC, CreatePen(PS_SOLID, 2, clWhite));
That will create a pen and it is never deleted. The code should be like:
var LPen: HPEN; begin LPen := CreatePen(...); try // Use the pen for drawing finally DeleteObject(LPen); // Release the GDI pen object end; end;
- This reply was modified 1 year, 4 months ago by Lasse.
July 27, 2023 at 8:15 am in reply to: TsSkinProvider.PaintAll -> GDIError (EOutOfResources = out of memory) #71292LasseParticipantI recommend asking ChatGPT e.g. “How to track GDIError (EOutOfResources = out of memory) errors in Delphi?”. It gives an excellent answer.
I bet my money on creating GDI objects and not deleting them somewhere. I have seen that thousand times.
LasseParticipantSet SkinData.CustomFont = True and set Font.Color.
LasseParticipantUse TsPageControl or add TPageControl to skin manager’s ThirdParty property.
LasseParticipantDelphi 7 was released 2002 and used to be my favorite version for a very long time. But try to develop components for modern Delphi and you will understand why it is a huge burden to support old versions. Personally I wouldn’t support anything before Delphi XE2. Unit scopes are a must.
LasseParticipantI played with that TsSkinManager.CommonSections a bit and it solves the problem. Thanks a lot.
March 20, 2023 at 8:19 am in reply to: Empty warning window while launching 64bit .exe Delphi 11.3 #71163LasseParticipantAdd a break point to message dialog execution.
March 17, 2023 at 12:19 pm in reply to: Empty warning window while launching 64bit .exe Delphi 11.3 #71161LasseParticipantHave you debugged where that is coming from? I have not come across this and I have the same versions of Delphi and AlphaControls in use.
March 16, 2023 at 6:44 pm in reply to: Is anyone able to use AlphaControls with Delphi 11.2 or later? in 64-bit #71160LasseParticipantYes, everything works perfect now.
LasseParticipantGood to know you’re ok.
LasseParticipantIt requires auto-renew to be turned on in your renewal and billing settings. But yes, not all service providers may have such an option.
LasseParticipantI maintain several websites and I know that the payments are automatically charged to the credit card. It does not require any action from the site owner as long as the payments go to the service provider.
March 8, 2023 at 9:37 am in reply to: Is anyone able to use AlphaControls with Delphi 11.2 or later? in 64-bit #71125LasseParticipantThere are many 64-bit issues which ASLR reveals. You can set it to false in linking options until those issues are fixed. See Building > Delphi Compiler > Linking > Support high-entropy 64-bit address space layout randomization (ASLR).
I have fixed some obivous cases by myself where I saw Integer casts done for pointers. Those must be NativeInt casts. But not all, I still have to keep that option False.
LasseParticipantI strongly doubt that no one does business with Delphi 5 using Windows XP, but of course I could be wrong.
LasseParticipantIt will do it automatically as long as the provider receives the money. So sadly nothing can be concluded from that.
February 16, 2023 at 4:43 pm in reply to: Is anyone able to use AlphaControls with Delphi 11.2 or later? in 64-bit #71117LasseParticipantYes, I am using the latest AlphaSkins with Delphi 11.2 64-bit and beta testing 11.3. You need to apply some fixes to make it work. See troubleshooting.
- This reply was modified 1 year, 9 months ago by Lasse.
LasseParticipantNo contact for months, I am starting to worry if we have any more AlphaSkins development. But the small ones are my worries when you think about what is happening in Ukraine.
LasseParticipantAh, it was mentioned in the title indeed. Delphi 5 was released in 1999. There are certainly several problems with current Windows. I would rather develop with modern Windows and use it to compile the version for the old ones, if needed. XP support ended April 8, 2014. Using XP is very risky. Even Windows 8.1 support ended at the beginning of this year.
PE header tells you what the rest of the file is about. That version is different in modern Windows. I think this is not an issue, if you build in XP with old Delphi version. But when doing the other way around, it must be taken into account.
There is a free community version of Delphi: https://www.embarcadero.com/products/delphi/starter/free-download
It is not the latest version but a significant step from Delphi 5. I’ve come a long way from Turbo Pascal to modern times and there’s no longing to go back.
-
AuthorPosts