-
Content Count
3622 -
Joined
-
Last visited
-
Days Won
179
Everything posted by David Heffernan
-
Delphi compiled EXE are flagged as malware by anti virus software
David Heffernan replied to Jaska's topic in General Help
Signing would help -
Setting the drop down width of a Combobox in Delphi
David Heffernan replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I've never in my life seen it written like that. Sure it works. But when you read it, it's not familiar and so it makes you think about it. Impedence. Patterns matter. -
Setting the drop down width of a Combobox in Delphi
David Heffernan replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
What's especially awesome about the VCL code is that it writes the for loop in a really weird way as for var I: Integer := 0 to -1 + Items.Count do with the -1 before the count, and that seems to have taken from Setting the drop down width of a Combobox in Delphi – twm's blog (dummzeuch.de) which in turn is taken from Sizing the ComboBox Drop Down Width (thoughtco.com) -
Using inline variables inside loops
David Heffernan replied to havrlisan's topic in RTL and Delphi Object Pascal
I think the asker knows this. The question though is how many variables are there for an inline var inside a loop. Is there one variable? Or is the N variables where N is the number of times the loop body executes? That's the question being asked as I understand it. The answer is that there is one variable. Seems like this is the opposite behaviour from C# https://stackoverflow.com/q/271440/505088 Personally I feel like Delphi has a poor design choice here. I'd expect a local variable that is defined inside a scope, to have a lifetime that was that scope. With the C# design you can achieve both possible behaviours by defining the variable inside or outside the loop body. In Delphi you have to resort to putting the body in a separate procedure. The we have C++ which allow capture by value or variable as specified by the programmer in code. That would also give the same flexibility but without requiring extraction to separate procedure. Or am I wrong? I'm basing this on reading and not practical experience so I may have misunderstood. -
64-bit debugger confirmed broken on 11.1 when using TypeInfo(T) for generic structs
David Heffernan replied to PaulM117's topic in RTL and Delphi Object Pascal
Use the 32 bit debugger -
Load DLL from resource, bypassing a file?
David Heffernan replied to Angus Robertson's topic in Windows API
If you can distribute one file you can distribute more than one. This always feels like a pointless discussion. Solving a problem that doesn't exist. -
Usually each release comes with a bunch of bugs fixed, and a new set of bugs released into the wild. I do think the product is slowly getting better though.
-
Delphi TOIOBE index lifted in May 2022?
David Heffernan replied to wuwuxin's topic in RTL and Delphi Object Pascal
Do they treat you differently when you answer? -
Delphi TOIOBE index lifted in May 2022?
David Heffernan replied to wuwuxin's topic in RTL and Delphi Object Pascal
Who cares about TIOBE? It's just irrelevant. -
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
It's strange that if this is what you want that you ask for something else. Classic XY problem. -
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
Address space fragmentation and sub allocation fragmentation. -
Migrate an old app in Delphi 2009 to modren C++
David Heffernan replied to Alkanium's topic in General Help
Love the engagement here from the poster -
ExcelApp.WorkBooks.Open() memory leak
David Heffernan replied to GringoStarr's topic in RTL and Delphi Object Pascal
Yes, but what is reporting the memory leak? There are lots of leak detection tools. If you use full fastmm then you can get allocation stack traces. It doesn't sound like you've really understood the issue. Normally Text would just map directly to GetText. But we still have no idea what Value is. This thread displays a deeper problem. That you think we can tell you what is happening with such incomplete details highlights the fact that you are also trying to solve the problem without those details. -
ExcelApp.WorkBooks.Open() memory leak
David Heffernan replied to GringoStarr's topic in RTL and Delphi Object Pascal
We can't guess what the code is. We still don't know how you are detecting. -
ExcelApp.WorkBooks.Open() memory leak
David Heffernan replied to GringoStarr's topic in RTL and Delphi Object Pascal
We've no idea what Value is. How are you detecting that there's a leak. -
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
Is the debugging experience still terrible though? -
ExcelApp.WorkBooks.Open() memory leak
David Heffernan replied to GringoStarr's topic in RTL and Delphi Object Pascal
How are you detecting that the memory has been leaked? -
"Material is not a valid floating point value" Ask yourself why you are trying to convert the text Material to a numeric value. Do you know why yet??
-
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
This seems extremely optimistic -
Set a break point on the line where the error occurs. When the code breaks there inspect the value of the argument passed to StrToCur.
-
Find a tutorial on how yo use a debugger
-
The error message seems quite clear. Do you know how to use the debugger to inspect vakues being passed to StrToCurr?
-
Project in Seismic Field
David Heffernan replied to nm1978's topic in Job Opportunities / Coder for Hire
But is anybody going to get paid and have any job security? -
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
It would really help if we could down vote issues as well as up vote them -
When will we have a 64-bit IDE version ?
David Heffernan replied to luciano_f's topic in Delphi IDE and APIs
This post here isn't going to have any impact