Jump to content

David Heffernan

Members
  • Content Count

    3701
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    IsNullOrWhiteSpace???

    Surely it's If string.IsNullOrWhiteSpace(someStr) then like in .net
  2. I'm so confused.
  3. 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?
  4. 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.
  5. David Heffernan

    String literals more then 255 chars

    Yes, but I'd not read your post and was making a general comment to the overall topic.
  6. David Heffernan

    String literals more then 255 chars

    Why just wish for relaxing the 255 limit? Why not aim for multi line literals and more?
  7. David Heffernan

    Delphi 11.3 is available now!

    Not the 64 bit windows compiler
  8. David Heffernan

    Methods from Libraries (bpl or pas) in Apps??

    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
  9. David Heffernan

    memory paging or segmentation

    It's almost impossible to help you
  10. David Heffernan

    TNumberBox and scientific notation (exponential format)

    What's wrong with a simple edit control?
  11. David Heffernan

    memory paging or segmentation

    because SizeOf(Char) = 2?
  12. David Heffernan

    memory paging or segmentation

    Write a program that does Writeln(SizeOf(Char));
  13. David Heffernan

    memory paging or segmentation

    The pascal code in the question has pointer access and arithmetic
  14. David Heffernan

    memory paging or segmentation

    What is SizeOf(Char) on your system. If it is 2 then that would explain everything.
  15. David Heffernan

    memory paging or segmentation

    There's really no significant difference here between C and Pascal.
  16. David Heffernan

    memory paging or segmentation

    There's a bug in your code. It surprise you to learn that we can't see your screen.
  17. David Heffernan

    memory paging or segmentation

    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.
  18. 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.
  19. David Heffernan

    memory paging or segmentation

    @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.
  20. David Heffernan

    Escaping UK pound sign in JSON

    Do pound signs need to be escaped in json? Please tell me you are using Unicode.
  21. Sounds like the worst of all worlds. The noise of try / except blocks everywhere, and old school checking for errors at all steps!
  22. Don't you just have a small number of top level exception handlers?
  23. Polling on a timer. Nice. As I said. The worst possible solution to this problem.
  24. 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.
×