Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/18/21 in Posts

  1. You forgot one important reason to optimize: The pure fun of it. 😉
  2. Stefan Glienke

    Generic set comparer

    Spring4D has ISet<T> and 2.0 will introduce IMultiSet<T>
  3. Attila Kovacs

    Quickly zero all local variables?

    We're approaching levels unseen.
  4. Attila Kovacs

    Generic set comparer

    LOL <o>, well, now it's revealed! 😉
  5. Leif Uneus

    Generic set comparer

    Well. there is no secret that LU RD is short for Leif Uneus R&D Manager of Opsis AB, a company that provides analysers and software for industrial and environmental analysis of gases and particulates. A company started 36 years ago by me and my business partner. Core software in the analysers is built with Turbo Pascal 7. Delphi is a tool for our software for data management, analysis and reporting.
  6. Leif Uneus

    Generic set comparer

    You can find a start here: https://stackoverflow.com/a/19524788/576719
  7. Hey, I am the German here (*1). But now you sound like one. 😉 Spoilsport! (*1: Of course I am not the only German here.)
  8. I use a profiler and I try to avoid wasting memory allocation. I've seen code searching for POST,PUT,GET,DELETE in a string spread all over the place. Why does one need to search so much? Parse and search once. Use enumerated types. There's a plethora of ready to use structures. Sometimes too KISSy is not KISS but simply S.
  9. Colleagues! We are pleased to announce the release of a new component for Delphi - Dockable Panels - FireDocking 1.0. The component implements the concept of dockable panels, widely used in the development of desktop applications. How Delphi IDE or Microsoft Visual Studio does. The component allows to deploy the docking infrastructure on any FMX.TControl or FMX.TForm. The component supports containers for splitter-separated panels or tabbed panels. Auto-Hide containers are also supported along all edges - left, right, top, bottom. The component fully supports the work with the styles of the Firemonkey. Any style from the Delphi supply can be used. Additionally, the component is equipped with a form designer plug-in for Delphi IDE. For more information and download a trial version, please follow the link. Developer Machines https://www.devmachines.com
  10. Colleagues! We are pleased to announce the release of an update the Grid component for Delphi - Firemonkey - FireDataGrid 1.8. The current version optimizes work with the latest version of Delphi - Sydney. Fixed problems when working with datasets, rendering errors and others. The structure of the source code has been redesigned. Developer Machines - Grid for Delphi (FMX) Developer Machines https://www.devmachines.com
  11. Remy Lebeau

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    First off, you DO NOT need to set the IOHandler's Destination, Host, and Port properties. Those are handled internally by Indy for you. As for the error, check if Scoped Enums is enabled. If so, you will have to fully-qualify the value by the enum's type name, eg: MaxLineAction := TIdMaxLineAction.maException; That being said, the MaxLineAction property defaults to maException anyway, so there is no need to set that value explicitly in this case.
  12. Well i made him notice you! Post the report on his forums and if it's an Indy bug i'm sure that @Remy Lebeau will help!
  13. David Heffernan

    Quickly zero all local variables?

    Why would anybody use code that does nothing? You call a procedure passing parameters by value. Then that procedure modifies those parameters. You've basically done this: procedure Foo(Value: Integer); begin Value := 0; end; I don't think it takes a genius to see that this is pointless. Furthermore, were your function able to do what you think it can, it's still useless. Who the heck is going to call a procedure passing a list of variables, to have that procedure set them to zero? You'll just set them to zero at the call site using the assignment operator. You really think people are going to write: prcInitItPlease([lMyVarLocalThiProc, lMyOtherVarLocal]); (which does not and cannot work as noted above) rather than lMyVarLocalThiProc := 0; lMyOtherVarLocal := 0; Honestly, this thread is mind boggling!
  14. balabuev

    10.4.1 Released today

    I've created hacker style fix for the TSpeedButton font issue SpeedButtonFontFix.pas (No need to change or replace any of standard source files. Just add the unit to your project and run) Same fix as design-time package. Fixes the font at design-time: pSpeedButtonFontFix.zip (open in IDE, right click the project file, choose "install" from context menu)
  15. David Heffernan

    Quickly zero all local variables?

    I can't believe that anybody would use such code in real programs. Wouldn't it just be better to initialise your local variables?
  16. Stefan Glienke

    Quickly zero all local variables?

    @Lajos Juhász Already reported as RSP-24383 @A.M. Hoornweg Might be RSP-19835 that got you.
  17. Just press ctrl+shift+v instead of ctrl+v.
  18. Achim Kalwa

    remove ExplicitXxxx properties

    I know I am late to the party, but you might try the attached package for Delphi 10.4.1. It uses the hooking code from Andreas Hausladen's VclFixPack v1.4 to patch the TControl.DefineProperties method to a modified code, which does not write those Explicit* properties to the DFM file. Unpack the zip archive, open DControlsFix.dpk in Delphi 10.4.1, compile & install. There is nothing to customize. If this package is installed, the patch is active. If you like to get the default behaviour back, just uninstall the package. Use at your own risk 😉 DControlsFix.zip
  19. I have created GitHub repository with code examples from my book Delphi Memory Management for Classic and ARC Compilers. It is still work in progress (there is plenty of code) and currently, it contains examples from Part 1 and Part 5. The rest is coming... https://github.com/dalijap/code-delphi-mm
  20. Carissa

    Cannot Run IDE (Emarcadero Delphi 10.3)

    Is that so I can get this response? Dennis kuria <embt.support@embarcadero.com> Tue, Feb 16, 5:05 PM (2 days ago) Hello carissa, The Delphi Community Edition product is supported differently from the other Embarcadero products. Since these products are not eligible for update subscription the Support for these products is only available in the Community Forums, Embarcadero online documentation and the product Frequently Asked Questions (FAQ). Here are links to the Community Forums and online resources for the Community Edition products
×