-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Delphi 11.3 unusable due to full-build-requiring onslaught of F2084 "Internal Compiler Errors" from minor source modifications
David Heffernan replied to PaulM117's topic in Delphi IDE and APIs
stockholm syndrome -
It's almost impossible to help you
-
TNumberBox and scientific notation (exponential format)
David Heffernan replied to Gord P's topic in VCL
What's wrong with a simple edit control? -
because SizeOf(Char) = 2?
-
Write a program that does Writeln(SizeOf(Char));
-
The pascal code in the question has pointer access and arithmetic
-
What is SizeOf(Char) on your system. If it is 2 then that would explain everything.
-
There's really no significant difference here between C and Pascal.
-
There's a bug in your code. It surprise you to learn that we can't see your screen.
-
You don't need to know about paging or segmentation. You need to learn how to allocate memory and then only access addresses within the memory that you allocated.
-
How to register a shell property sheet for a single file type?
David Heffernan replied to FPiette's topic in Windows API
Rather than writing code, just edit the registry manually to debug your problem. Once you know what the solution is, then write code. If you want somebody here to troubleshoot then showing registry structure is much easier to work through than Delphi code to write registry values. -
@milurt Is this question too hard for you to answer? I think that the answer is 4, but you seem to think that the answer is 3.
-
Escaping UK pound sign in JSON
David Heffernan replied to david_navigator's topic in Algorithms, Data Structures and Class Design
Do pound signs need to be escaped in json? Please tell me you are using Unicode. -
Is it possible that an exception does not inherits from Exception class?
David Heffernan replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
Sounds like the worst of all worlds. The noise of try / except blocks everywhere, and old school checking for errors at all steps! -
Is it possible that an exception does not inherits from Exception class?
David Heffernan replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
Don't you just have a small number of top level exception handlers? -
Best Practice Question: Bidirectional EXE-to-EXE communication
David Heffernan replied to Alexander Halser's topic in RTL and Delphi Object Pascal
Polling on a timer. Nice. As I said. The worst possible solution to this problem. -
Best Practice Question: Bidirectional EXE-to-EXE communication
David Heffernan replied to Alexander Halser's topic in RTL and Delphi Object Pascal
I've used memory mapping for sure. But it sucks for this application which wants messages. Important to use the right tool for each job. -
How to remove metadata from Word document (using OLE)
David Heffernan replied to Kevin Smith's topic in General Help
Process the XML directly. Should actually be a really easy job for a SAX based processor. Even better, you don't need any COM automation of Word. If you need to do this in your product then I guess Delphi is best. If it's a helper script for personal use I'd do it in Python or similar. -
How many items in this list: 0 1 2 3 I think there are four items in this list, but the logic in your code would conclude that there are three items in this list. Therein lies your problem. Of course your real code may be completely different to the code you showed us in which case who knows what's wrong with it.
-
Best Practice Question: Bidirectional EXE-to-EXE communication
David Heffernan replied to Alexander Halser's topic in RTL and Delphi Object Pascal
Ugh, this has to be the worst possible solution -
Best Practice Question: Bidirectional EXE-to-EXE communication
David Heffernan replied to Alexander Halser's topic in RTL and Delphi Object Pascal
FWIW there is registration free COM. Not saying that's what you need, just that you don't need registration to use COM. -
How to register a shell property sheet for a single file type?
David Heffernan replied to FPiette's topic in Windows API
Reluctance to simply follow the documented steps is very odd here. -
Is it possible that an exception does not inherits from Exception class?
David Heffernan replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
Indeed -
Is it possible that an exception does not inherits from Exception class?
David Heffernan replied to Wagner Landgraf's topic in RTL and Delphi Object Pascal
Its simple to check this by changing the code to handle all exceptions, not just ones that derive from Delphi's Exception class. I wonder, how would a language exception raised by another module in your process appear as when it reach your exception handler? -
I don't really see that this is so. Don't you want fast compilation and fast executable code? I'm sure you do. Do you think that you can have one but not the other?