Jump to content

DelphiUdIT

Members
  • Content Count

    867
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by DelphiUdIT

  1. DelphiUdIT

    Forum running slow

    It's been slow for me since yesterday morning, with timeout as well.
  2. @Anders Melander Your analysis is certainly more in-depth than mine, I agree with your assessments.
  3. The posts don't appear aggressive, and the topic is interesting. It's obvious that, referring to a company, the purpose is subtly commercial. Furthermore, the link makes a clear request: it's not in any way blatantly disguised. If the forum administrators deem it appropriate, the link could be removed (as is standard practice), given that the topic hasn't been posted on the dedicated announcements page. Adding a note such as "link removed due to violation of terms" might be a good indication. But be careful, as many other posts contain references to commercial sites as a guide for users... you need to think carefully and act transparently.
  4. Over the years, we've all had more or less the same problems, although Delphi certainly has fewer issues than other competing languages. I port all "maintained" projects—those that customers pay for maintenance—and active ones to the latest version of Delphi/Rad Studio. And I always have a single version (the latest) of Rad Studio in production. My porting efforts are primarily prevention: I only use third-party products with source code; I don't use the latest developments without thoroughly testing them; I comment on the source code with a lot of information, perhaps too much; I try not to use anything labeled "deprecated" or "obsolete"; I try to use proven technologies that I know work; Once a new technology is established and working, I gradually update my code (both old and new) so as not to be left behind in upcoming releases. I certainly don't have any problems with staff leaving: I don't have any. I have collaborators, but they always send me the source code, which I then verify and recompile myself (not just in Delphi). With these precautions, I've never had any major migration problems. N.B.: This doesn't just apply to Delphi, but also to other libraries (more expensive than Rad Studio) that generally require much more effort to update. Integration is certainly the most important part, but not for Delphi-related updates. Then come the components (especially the graphical ones), which can cause some problems if updated. Business logic has never been a problem.
  5. DelphiUdIT

    Bookmarks and Navigator plug-ins for D13 are available

    You can download them form github. They have the "Install" utilities to simplify the installation in Rad Studio: https://github.com/project-jedi (Jedi, Jcl, Jvcl)
  6. Assign it to a byte var for example, or try to use an helper (.toString) or ....
  7. @Joined72 I tested it on old system and it's true that in Android 64 the app crash. But I tested various exceptions and only this particolar form of literal dereferencing crash the application. PByte(nil)^ //<---- this is what in Android 64 crash the app. Also other type of pointer like "PInteger(nil)^" do the same. var a: pointer; a := nil; PByte(a)^ //<---- this throw an exception If you dereference a normal variabile wich value is nil, an exception will throw but the application still run. If no other person on the forum can help, open an issue on QP. Even if that kind of "writing" doesn't make sense, it still shouldn't crash the program. P.S.: Try / except block doesn't work, the application crash inside.
  8. Are you kidding me Why would you do something like this? It definitely crash the app. You deferencing a nil pointer (and this is already a mistake), and you write inside too.
  9. You must give us more informations and you must try to debug the application to see where it crash. After that post some part of relevant source code. We do not have the magical globe.
  10. DelphiUdIT

    TLS v1.3

    I don't think it'a a viable solution for Delphi 7. But the last words belong to @Remy (Indy) and @Mugaas (TaurusTLS), of course. Try to open an ISSUE in their github repo (https://github.com/IndySockets/Indy) and ( https://github.com/JPeterMugaas/TaurusTLS)
  11. DelphiUdIT

    Forum running slow

    For me too.
  12. Hallo, for those unaware, Embarcadero has posted updates to the new offline Help for Alexandria 11.3. This is the download link for the files. http://docs.embarcadero.com/products/rad_studio/ Bye
  13. DelphiUdIT

    Offline Help updates available from Embarcadero

    This is the new link for offline help chm updates. https://docwiki.embarcadero.com/docs/products/rad_studio/ The help published now works offline, the original released and the previous update didn't work offline. The help files are dated September 11, 2025.
  14. For my tasks, "FreeOnTerminate" is always set to False in all my applications. There are a lot of reasons for that (I repeat, for my uses), one of them is that I need a waitable thread 99% of the times. If your thread release a resources, then you must use the "waitfor" or similar since the thread can be busy before free it or resuse it (and this is the real reason why I cannot use FreeOnTerminate). And even if there's no need to release resources, there's no way to know when a thread with FreeOnTerminate set to True will actually terminate. By running tests under load and in a 64-bit Windows environment (my applications generate an average load of around 75% on 32-thread Intel i9 processors), I found that low-priority threads take a long time to release. In some cases, it can take up to a few tens of milliseconds, so without a WaitFor, it's a risk.
  15. Never had such issues. I use a lot of TThreads (form 5 to 50), all manually created and destroyed in my applications. But "FreeOnTerminate" is always set to FALSE. Never used it with True sets, except in anonymous threads. And I don't create and destroy most threads continuously, but leave them in a WaitFor state, until I use them again. I'll try to do some tests in one my application left them to "autofree" ....
  16. If you want to use RDRAND and RDSEEK, I attach the sources so you can see how they works. These is another topic where we talked about: https://en.delphipraxis.net/topic/10271-getting-rdseed-with-delphi/?do=findComment&comment=81868 These two instructions works in Intel and Amd CPU only (x86 or x64). In Arm they were introduced recently and the behave in slightly different way. In the source there are some lines commented that you can delete. These have been in use for at least 4 years in all my production programs without ever having given me any problems. They have also been in use and constantly monitored for a year on a test web server (to check the workload and performance in a multithreaded environment). Unit11.zip
  17. DelphiUdIT

    Not greying out inactive code

    No options, It is automatic. Try to close the Unit and reopen it again. Somtimes you must close the Project and reopen again. Another options is to do a build: I see that after the build "normally" all things works. All of this depends where the "definition" is declared: is it in Project options ? Or in one unit of the Project ? Or in one unit outisde the Project ? There is this topic too: https://en.delphipraxis.net/topic/13722-define-conditional-symbol-in-dpr/?do=findComment&amp;comment=105371
  18. You must DELETE the file "FMX.ScrollBox.dcu" in: C:\Program Files (x86)\Embarcadero\Studio\37.0\lib\linux64\release C:\Program Files (x86)\Embarcadero\Studio\37.0\lib\linux64\debug because it is in the FMXLinux distro. P.S.: I don't know if those files should overwrite the same in FMXLinux distro .....
  19. DelphiUdIT

    UIAutomation in Delphi 13

    Like I wrote (suggestion from @pyscripter) simply add 'delayed' in the UIAuotmation unit.
  20. DelphiUdIT

    UIAutomation in Delphi 13

    It works. Adding the delayed attribute prevents the DLL from loading. By now, since in the future EMB can always call it to initialize something ....
  21. DelphiUdIT

    UIAutomation in Delphi 13

    I don't thnk so, at least until you create a provider. For now, Delphi creates applications with a nil UIA provider (I tested some applications of mine), I don't think there are any problems. But if you manually create a provider, it's configured on the server, and it's possible that you can interact with it from the outside. I don't know to what extent. I think we should wait until more explanation will come from Embarcadero or from other experts.
  22. DelphiUdIT

    How to get the battery capacity of an Android phone?

    In a very very old project I did this: procedure TForm5.Button1Click(Sender: TObject); var ifl: JIntentFilter; ctx: JContext; bStatus: JIntent; level, scale: Integer; begin //(get the battery status intent) to determine the current state of charge ifl := TJintentFilter.JavaClass.init(TJIntent.JavaClass.ACTION_BATTERY_CHANGED); ctx := TAndroidHelper.Context; bStatus := ctx.registerReceiver(nil, ifl); //string reality is that the level of BatteryManager.EXTRA_LEVEL // reality of//BatteryManager.EXTRA_SCALE string that Scale level := bStatus.getIntExtra(StringToJString('level'), -1); scale := bStatus.getIntExtra(StringToJstring('scale'), -1); //calculate the % state of charge ListBox1.Items.Add(IntToStr((100*level) div scale)); end;
  23. DelphiUdIT

    Windows SDK Problem with RAD Studio 13

    Are you sure you have added all SDK features required (https://docwiki.embarcadero.com/RADStudio/Florence/en/What's_New) ? If you think that you are right, open a new issue in QP: https://embt.atlassian.net/servicedesk/customer/user/login
  24. DelphiUdIT

    Windows SDK Problem with RAD Studio 13

    Why you told that SDK is not inserted in the SDK Manager ? Did it show an error? This is what my SDK manager showed ... this is for Windows 64 bit.
  25. DelphiUdIT

    Windows SDK Problem with RAD Studio 13

    Windows SDK is needed in RAD Studio 13. Look this explanation: https://en.delphipraxis.net/topic/14484-comdefh-missing-from-rad-studio-130/?do=findComment&comment=108301
×