-
Content Count
3701 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
Surely it's If string.IsNullOrWhiteSpace(someStr) then like in .net
-
VCL or FMX: My sample using Thread running in another forms for some tasks...
David Heffernan replied to programmerdelphi2k's topic in General Help
I'm so confused. -
VCL or FMX: My sample using Thread running in another forms for some tasks...
David Heffernan replied to programmerdelphi2k's topic in General Help
Start exists for a reason. It doesn't exist to create a thread and start it immediately. I still don't know the point of this code. What is the high level overview of what you are trying to do here? -
VCL or FMX: My sample using Thread running in another forms for some tasks...
David Heffernan replied to programmerdelphi2k's topic in General Help
UI code must run on the main thread. Although I have no clue what the point of this code us, I can see that it breaks that rule. Sad to see a thread be created suspended only to be immediately started. -
Yes, but I'd not read your post and was making a general comment to the overall topic.
-
Why just wish for relaxing the 255 limit? Why not aim for multi line literals and more?
-
Not the 64 bit windows compiler
-
Methods from Libraries (bpl or pas) in Apps??
David Heffernan replied to Ian Branch's topic in General Help
I'm not sure that @programmerdelphi2k is correct here. Consider RTTI. The compiler / linker can strip any code that it knows cannot be called. But with RTTI code can be referenced in ways that are only known at runtime. Therefore any code that can be reached by RTTI cannot be stripped.. Even if the linked knows, through static analysis, that it cannot be called directly -
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.