Jump to content

David Heffernan

Members
  • Content Count

    3674
  • Joined

  • Last visited

  • Days Won

    181

Everything posted by David Heffernan

  1. David Heffernan

    Wordpress to Firemonkey

    What does convert WordPress into Firemonkey app actually mean. Can you give more detail.
  2. David Heffernan

    Delphi 11, migrate or wait

    Yeah, you can't jump back in can you. You have to start again from scratch.
  3. David Heffernan

    Delphi 11, migrate or wait

    Based on historical experience this seems wildly optimistic!
  4. David Heffernan

    Delphi 11, migrate or wait

    It's really for you to decide. You have to test your app. We can't know what issues you will face. The big question to ask your self is what are the benefits and do they out weight the downsides which are primarily risk of new defects.
  5. David Heffernan

    DUnitX: How can I load HTML files within unit test?

    You need a mock. There are lots of mocking frameworks around. Are you using one?
  6. David Heffernan

    Long term availability of Community Edition

    If anybody can tell us about the long term availability of the community edition would they also be so kind as to tell me about the long term availability of me.
  7. David Heffernan

    Interesting way to copy dynamic arrays.

    What would be nice would be if Emba could add a MakeUnique(arr) so that you could write code like with with clear intent
  8. David Heffernan

    Interesting way to copy dynamic arrays.

    Why would that be different?
  9. In fact, when you put 1.025 into a double precision variable, what is stored is the closest representable value to 1.025 which happens to be 1.024999999999999911182158029987476766109466552734375.
  10. Isn't your problem simply that you are using wrong type. You should be using a decimal type.
  11. If you want to build a VCL app then you need to fit into the framework. The main form is the first one created by a call to Application.CreateForm. Can be valle anything. Does not need to be Form1. You can create other forms before the main form if you want. The outer begin/end block in the dpr file is the effective entry point. You arent going to have immutability with VCL controls. If you want immutability, look elsewhere. Are you building a GUI app?
  12. David Heffernan

    Hot Reload in Delphi?

    Logging allows you to avoid the part where you repeatedly start up and navigate to the point of interest.
  13. David Heffernan

    Hot Reload in Delphi?

    I guess you already use logging to save time. One thing that I hanker after is a reversible debugger, where you can step backwards. Tricky to implement I am sure.
  14. David Heffernan

    Simple FFT

    I just use lapack for fft, seems not much point in trying to create yet another implementation
  15. David Heffernan

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    Because the computer has ARM processors would seem like the obvious reason
  16. David Heffernan

    Library to get user, computer info

    Not such much on Linux
  17. This has always been fine here. How can this be reproduced?
  18. Could be anything. Could be that you are splitting a vcl app between an exe and a dll. Sounds like you haven't diagnosed the problem yet. That's what I would try to do first rather than trial and error ideas like you are asking us for help with.
  19. David Heffernan

    RemoteApp

    You could do that
  20. No. Longstanding limitation. Kinda sucks. Can't have multiple helpers which would be another way to do what you want.
  21. David Heffernan

    Delphi’s TZipFile working on a stream

    The ZIP file headers are parsed and stored when you call Open. So I don't think this should be especially slow. However, it is wasteful to call FileNames repeatedly because it is a property with a getter method that makes a new dynamic array every time you access it. So I'd do it like this var zip := TZipFile.Create; try zip.Open(fZipFilename, zmRead); for var fileName in zip.FileNames do Memo1.Lines.Add(fileName); finally zip.Free; end; (not sure if the inline var inside the for declaration works, but if not you know what to do!) Although actually in this case you could simply write var zip := TZipFile.Create; try zip.Open(fZipFilename, zmRead); Memo1.Lines.AddStrings(zip.FileNames); finally zip.Free; end;
  22. David Heffernan

    Delphi’s TZipFile working on a stream

    What was you actual code. The code here is not real.
  23. Is TryStrToFloat the bottleneck? Or is it reading the text file? Did you profile yet?
  24. Do you need to know whether or not the value is in the valid range of your target data types? Also if you need to do this fast then you probably won't be using a string for each line becasue that involves heap allocation.
  25. David Heffernan

    Windows 11 checkbox and radio button color

    In this case I don't understand what you are saying. I thought you wanted to override the default system theme. But it seems I misunderstood you.
×