-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Quickly zero all local variables?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Because doing so does take time. For sure it won't be noticeable for most functions, but for tiny leaf functions in hotspots, it can be. You realistically are not going to add code manually to every single function you write to do this. The compiler can't do it. Everything else is just noise in this thread. -
Quickly zero all local variables?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
I can't believe that anybody would use such code in real programs. Wouldn't it just be better to initialise your local variables? -
Quickly zero all local variables?
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Not going to be an easy way to do what you ask and I doubt it would address the real problem. -
Create a Delphi Dll and load it with DllMain
David Heffernan replied to BlueOrange's topic in General Help
It's still not clear. Are you wanting to use the CreateRemoteThread technique, where you allocate memory in the victim process which contains the name of your DLL and then your thread procedure calls LoadLibrary? -
Create a Delphi Dll and load it with DllMain
David Heffernan replied to BlueOrange's topic in General Help
Can you describe what injection technique you plan to use, and what you have achieved so far. Also, don't try to work on this with the production DLL. Work with a simple do nothing DLL so that you can test one thing at a time. -
Undocumented language enhancements
David Heffernan replied to vfbb's topic in RTL and Delphi Object Pascal
Obviously I know this and have read it plenty of times. But it's way short of a formal specification. Just read the topic for properties. What does fieldOrMethod mean? It's not precisely defined anywhere. The entire language documentation is like that. Just a little imprecise. -
Undocumented language enhancements
David Heffernan replied to vfbb's topic in RTL and Delphi Object Pascal
The entire language is essentially undocumented. There is no formal specification, no documented grammar etc. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
It's called the interface contract. It relies on an agreement between callee and caller, rather than hope. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
I think @Lars Fosdal had in mind a post or article with a definitive statement that exhaustively covers every form of variable. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
Perhaps you'd like to explain how you go about implementing an atomic increment function without using a var parameter. Which seems to be what you are advocating. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
Gonna be hard to implement an atomic increment without using a var parameter. Perhaps if people want to talk about the issue of whether certain variables are aligned, then perhaps a new topic would be better. -
(Hole) align hole inside the panel form 1
David Heffernan replied to victorlus's topic in General Help
Please don't spam the site with duplicate posts. When you do post, please don't use ultra large text. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
It's impossible to draw any conclusions from this declaration. This isn't code that executes. It's just the signature of a procedure. Its kinda tedious that you have said over and over that your data is aligned but people keep coming back to say "your data has to be aligned." -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
The alignment requirement has been stated many times in this topic. It's doesn't need to be repeated. -
atomic setting of a double variable
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
What is the question here? Is it, "is this operation atomic for aligned data?" Or is it, "what are the rules for determining whether or not data is aligned?" -
The documentation explains what a unit is in Delphi
-
The TDIFF component -does not work in 64 bit compiled app
David Heffernan replied to rudy999's topic in VCL
This is something that crops up over and again. Always get third party libraries from their main repos, and make sure you are up to date. -
Integer overflow in tStringList.SaveToFile
David Heffernan replied to Jud's topic in RTL and Delphi Object Pascal
Examples please. -
Integer overflow in tStringList.SaveToFile
David Heffernan replied to Jud's topic in RTL and Delphi Object Pascal
It is a design choice for strings. Stop using strings to hold huge text files. If you want to write a program that works then that's your only choice. -
Global variable : why the compiler don't complain about this ?
David Heffernan replied to mderie's topic in General Help
We've all been saying this for years and years. My old boss first said this to me 20+ years ago. We are so so so far behind. -
Delphi Native Code: Fast or Reliable?
David Heffernan replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
It's a 12 year old article. I think it's reasonable to assume that a lot of things have changed since it was written! Although a statement like "Delphi compiled programs are fast" is just as wrong now as it was then. -
No. The DLL won't be loaded by the IDE. Why would the IDE load a Python DLL? It has nothing to do with Python. I have no problem debugging my program that hosts the Python DLL. Although I always do it with the 32 bit debugger because I prefer not to have the debugger crash every 30s as happens with the 64 bit debugger.
-
The IDE is a different process.
-
XLS 2 XLSX
David Heffernan replied to DrShepard's topic in Algorithms, Data Structures and Class Design
It's a huge amount of work to build such software. Unlikely to find comprehensive free solution for Delphi. Perhaps you should consider my suggestion. -
XLS 2 XLSX
David Heffernan replied to DrShepard's topic in Algorithms, Data Structures and Class Design
In full generality this is difficult. Not many libraries have full support for reading and writing both formats. If it were me, I'd be looking for a way to change the problem statement.