Jump to content

dummzeuch

Members
  • Content Count

    2637
  • Joined

  • Last visited

  • Days Won

    91

Everything posted by dummzeuch

  1. Hm, while I agree in principle that features requests should be posted to the right place, I think you did not realize this is the GExperts sub forum, because SourceForge does not have a voting functionality. (And I totally missed this topic until you and Lars commented on it which kind of enforces your point.)
  2. dummzeuch

    Getters & Settters??

    There is a limit to how many parameters can be passed in registers (faster) vs. on the stack. But that limit also depends on the parameter type and apart from really time critical code you should simply ignore this possible issue, because other considerations are far more important.
  3. dummzeuch

    Keyboard macro help

    If you are using GExperts: The Macro Library expert can display the content of a macro, so you can check what was recorded.
  4. dummzeuch

    A gem from the past (Goto)

    I usually do the same, with an asm nop end; on that line. Unfortunately that Set next statement feature doesn't always work as expected. Sometimes the stack gets corrupted (at least that's what I think what happens). That's why I had to resort to a different approach here. Also, that feature was introduced with Delphi 2007 (or was it 2006?) so for earlier versions you had to change the Program Counter in the CPU window (Yeah, I know, nobody cares any more about these ancient versions. I'm the only freak who still sometimes uses them.).
  5. dummzeuch

    Zip Compression library

    Not that I have actually timed it: We use 7zip with the interface units from the jcl to produce .zip (not .7z) files.
  6. dummzeuch

    Cannot open project main form

    Have you tried to open the .pas file when the .dfm file is not there? And vice versa?
  7. dummzeuch

    A gem from the past (Goto)

    No, a loop wouldn't have worked there. It's a function that is called multiple (many) times from several places, one of these calls (I didn't even know which one) was creating the result I was interested in. A wrapper function world also have worked, something like: function whatever: SomeType; /// this is the original function function innerwhatever: SomeType; begin // some code that generates the result end; // the wrapper function calls it begin Result := innerwhatever; if Result = ResultIWantToDebug then Result := innerwhatever; // <== put a breakpoint here end; I probably should have mentioned that the function has parameters which I omitted in the example because it didn't matter.
  8. dummzeuch

    A gem from the past (Goto)

    I actually used a goto for debugging today. The reason was that at the end of a function I check the result and for a particular result I want to repeat the code in the function in order to step through it: function whatever: SomeType; label RepeatMe; begin RepeatMe: // some code that generates the result if Result = ResultIWantToDebug then goto RepeatMe; // <== put a breakpoint here // some more code end;
  9. dummzeuch

    Delphifeeds.com??

    .dws is Delphi Web Script and probably means that the server is misconfigured because instead of executing the file it delivers if for download.
  10. dummzeuch

    Looking for a localization tool

    dxgettext has been supporting ressourcestrings ever since I started using it, about 15 years ago. I don't know when that was implemented.
  11. dummzeuch

    Page Control

    TPageControl has two events for changing pages: OnChanging and OnChanged. Use the first to get the old tabsheet and the second to get the the new one.
  12. dummzeuch

    Looking for a localization tool

    Gnugettext for Delphi (dxgettext) handles (VCL) forms.
  13. dummzeuch

    Looking for a localization tool

    I would really have liked to recommend gnugettext for Delphi (dxgettext) + the tools for the standard po file format here (I really do like Gorm for editing po files). Unfortunately it is mostly unmaintained by now, even the homepage has now disappeared into the depth of the Internet Archive. The only plus is the price: You can't beat free.
  14. Where "module" doesn't necessary mean another package. It can also be a regular DLL. This can even cascade: Maybe a DLL needed by the DLL loaded from the package is not there (e.g. MS Visual Studio Runtime).
  15. dummzeuch

    Delphifeeds.com??

    Same story over and over again: There is a good tool / website / whatever Embarcadero buys it (or the person who made it becomes an employee) It goes down the drain
  16. As far as I know everything in that blog post still applies. But beware: This is for Win32 programs. I have no idea whether Win64 or other platforms are supported and whether any changes are necessary there.
  17. dummzeuch

    SingleStep with F7/F8 hang IDE

    This happens frequently for me too, even though I rarely use Delphi 11. That's one of the bugs that keep me from switching to Delphi 11 for anything serious. And no: For me this is not Fn-key related (even though that's a valid point), mine is a desktop computer with a regular keyboard that does not have any "media" related key remapping.
  18. dummzeuch

    Saving ProjectGroups to a new folder

    You make it sound like git was the first Source Code Management tool ever invented, but in fact git is only the one of latest additions to that class of tools. As for "easily": There are SCMs that are easier to use in particular for a single programmer.
  19. dummzeuch

    ProcedureList - Edit edtMethods lost Focus

    Fixed in revision #3918
  20. dummzeuch

    Change of coding style/structure..

    I actually used Goto once and I still think it was better than all alternatives in that one specific case. But in general I agree. But do we really need yet another discussion on this? And Exit, and Continue and Break and .... FreeAndNil ? I think everything has already been said about these, multiple times, actually too many times.
  21. dummzeuch

    ProcedureList - Edit edtMethods lost Focus

    I saw the bug report on sourceforge. Thanks for reporting it. I have got an idea what the problem might be but I need time to investigate.
  22. dummzeuch

    Change of coding style/structure..

    Once you have tried to debug code with with, sometimes even with multiple variables listed in the statement ("with a, b, c do") and even nested, you will start to dislike it even for small parts of code. And then there are the issues with new properties and fields being introduced in ancestor classes which break the code in a with block because rather an accessing a local variable all of a sudden the code accesses a property brought into scope by a with. That's where my "passion" comes from. My time is too valuable to waste it with problems introduced by being too lazy for typing an identifier. If you really want to save some keystrokes, at least declare a local variable, even inline if your compiler supports it: begin var Items := ListView1.Items. for i := 0 to Items.Count - 1 do begin Process(Items[i].Caption); end; end;
  23. Or simply revert those changes in the SCM?
  24. dummzeuch

    Change of coding style/structure..

    I don't think @Stano was referring to the method TForm.Release.
  25. dummzeuch

    Windows 11 22H2 lost batch file association

    Like "APP" ? 😉 (Which was already used in the Atari ST's TOS in 1985, just in case you didn't know.).
×