-
Content Count
2637 -
Joined
-
Last visited
-
Days Won
91
Everything posted by dummzeuch
-
[Suggestion] Add a new "Created Date" column to "To Do List"
dummzeuch replied to Edwin Yip's topic in GExperts
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.) -
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.
-
If you are using GExperts: The Macro Library expert can display the content of a macro, so you can check what was recorded.
-
A gem from the past (Goto)
dummzeuch replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
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.). -
Not that I have actually timed it: We use 7zip with the interface units from the jcl to produce .zip (not .7z) files.
-
Have you tried to open the .pas file when the .dfm file is not there? And vice versa?
-
A gem from the past (Goto)
dummzeuch replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
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. -
A gem from the past (Goto)
dummzeuch replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
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; -
.dws is Delphi Web Script and probably means that the server is misconfigured because instead of executing the file it delivers if for download.
-
dxgettext has been supporting ressourcestrings ever since I started using it, about 15 years ago. I don't know when that was implemented.
-
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.
-
Gnugettext for Delphi (dxgettext) handles (VCL) forms.
-
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.
-
Delphi 6 - Can't load package.....specified module could not be found.
dummzeuch replied to doctormangle's topic in General Help
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). -
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
-
Delphi 11.0 FMX Windows app gives error during startup for some users
dummzeuch replied to XylemFlow's topic in FMX
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. -
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.
-
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.
-
Fixed in revision #3918
-
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.
-
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.
-
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;
-
Move project to pc with different scaling (100% -> 150%) - Impact on GUI ?
dummzeuch replied to CyberPeter's topic in VCL
Or simply revert those changes in the SCM? -
I don't think @Stano was referring to the method TForm.Release.
-
Windows 11 22H2 lost batch file association
dummzeuch replied to Angus Robertson's topic in Delphi IDE and APIs
Like "APP" ? 😉 (Which was already used in the Atari ST's TOS in 1985, just in case you didn't know.).