Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    language updates in 10.4?

    Spend some time looking at the development process and quality over in C# and .net land, and then see if you honestly can regard Emba's process and quality even remotely in the same ball park.
  2. David Heffernan

    Generic class

    It's not a choice between either generics, or polymorphism. You can use both.
  3. David Heffernan

    Generic class

    Because that's the only way to make this work. Your expectations seem unrealistic. As I see it you face two choices: 1. Code it the way I said, and thus have your code work the way you want. 2. Code it your way, and have your code not work the way you want. I don't understand why you want to take option 2.
  4. David Heffernan

    Generic class

    constructor constraint isn't going to be much use here, you can get rid of it. What you need is a virtual constructor on the base class, and virtual methods. And then obviously to override those methods on subclasses.
  5. David Heffernan

    What is the best way LoadFromFile & Thread? (FMX)

    We don't really know what your main goal is. Hard to give useful advice.
  6. David Heffernan

    What is the best way LoadFromFile & Thread? (FMX)

    Define "best" please. Also, the try/finally seems a little pointless.
  7. David Heffernan

    language updates in 10.4?

    The eternal optimist
  8. David Heffernan

    Generics and Classes on Windows 2000 = OOM

    Strange suggestions given that all symptoms point to memory leak in your code.
  9. David Heffernan

    Generics and Classes on Windows 2000 = OOM

    Smells like a memory leak, or perhaps the loss of contiguous address space due to fragmentation from reallocation.
  10. David Heffernan

    Generics and Classes on Windows 2000 = OOM

    It's very plausible that you have a memory leak. Just because fastmm4 says you don't doesn't mean you don't. It's one thing returning memory when the program closes, another returning it in a timely fashion during execution.
  11. David Heffernan

    Generics and Classes on Windows 2000 = OOM

    Didn't you read that topic? The entire topic was based on misconception.
  12. David Heffernan

    Bugs in GExperts source code?

    No. It's a suggestion that if you want an improvement to an open source project then one option is that you contribute it yourself. ALL-CAPSing the project maintainer is a strategy that in my opinion is sub optimal for your goals.
  13. David Heffernan

    Bugs in GExperts source code?

    Why don't you have a go at fixing it, and contributing the fix?
  14. David Heffernan

    Image pointer and buffer size

    Perhaps you know what this is. We don't. Try to imagine that we can't see your screen.
  15. David Heffernan

    tDictionary<>.SetCapacity

    Isn't this something you set when you create the dictionary? Does the spring4d implementation offer more functionality?
  16. David Heffernan

    Image pointer and buffer size

    What is your actual problem for which you need a solution? Because what you are asking doesn't actually make sense.
  17. Flip side, you can have loads of available memory but no available contiguous address space. That's the advantage of a 64 bit process. It removes the limitations on address space.
  18. I have no qualms about working with a 2G memory block under 64 bit. What exactly are you getting at? Can you explain in technical terms what problem you envisage?
  19. Two names for the same thing in my eyes. But if the official title is page file then that's what we should say, I agree.
  20. Then you'll fragment your address space and perhaps worse spend time doing expensive heap allocation. I don't know why you think SetLength(arr, Length(arr) + 1); arr[High(arr)] := item; is preferable to list.Add(item); And what about if you hold classes in a list, how do you manage lifetime? Lots of good reasons to use a good library of collection classes.
  21. So when you populate an array, and its full but you need to add more items, how do you grow it?
  22. How could lists possibly consume less than an array?!!! Let me ask you a question, do you have any code that does SetLength(arr, Length(arr) + 1)?
  23. No. Wrong conclusion. That memory will be backed by the swap file. User may not have one. And even if they do perf is terrible. Seriously, you are way down the rabbit hole. Give up thinking about the advanced stuff and concentrate on the basics. Make sure you know how lists work.
  24. Yes, it would definitely help you to learn the difference between virtual and physical memory.
×