Jump to content

Attila Kovacs

Members
  • Content Count

    1977
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Attila Kovacs

  1. Attila Kovacs

    Install Raize components 6.1.10 in Delphi 10

    make sure there is no precompiled stuff with older delphi version like dcu, dcp etc... (backup the raize dir first)
  2. Attila Kovacs

    Install Raize components 6.1.10 in Delphi 10

    there is a build script in the source dir
  3. Attila Kovacs

    Q for MAPI Expert

    I see. I've installed it now and the whole html is inserted as text. Sadly, there is not much we can do in simple mapi. You could ask them in their forum to implement it.
  4. Attila Kovacs

    Q for MAPI Expert

    @marcin thank you for the feedback, as for thunderbird just pass the html text as the body. Don't forget to inline the images, and keep them in one single line. For Outlook you have to test for yourself as I do not have any here. There are rumors on the net that body should be null and the first and only attachment should be html body but I hope it's not the case anymore.
  5. Attila Kovacs

    Fix DBGrid Scrollbar Problem

    Well, Delphi was first not C#. With "the other" I can't deal. Anyway, I'd suggest you to hire a Delphi coder who can easily override the corresponding event handlers to let TDBGrid behave like you describe. (For whatever mystic reason)
  6. Attila Kovacs

    Fix DBGrid Scrollbar Problem

    What makes you think the "other" is the normal? For me, it's abnormal.
  7. no, you are showing the interface part of the class, not the actual class with code
  8. Attila Kovacs

    Custom component TAction (s) - OnExecute overide

    There is always a virtual DoXY behind the OnXY.
  9. Ok, what does then SetLength(words, Length(Words)*2); SetLength(TArray<Byte>(words), Length(Words) div 2); with the array? 😉 Btw, it will also reallocate and copy the memory if needed so forget SetLength(). Does your version leak memory?
  10. What does setlength do with the casted memory?-
  11. If you are using the string as a pointer it's your responsibility to stay in its boundaries. The memory around it could be anything. Even if it's "unused", the next moment it could be assigned to other things.
  12. Attila Kovacs

    Current VCLZip?

    Well, there is ZipForge then. It's still maintained.
  13. Attila Kovacs

    Current VCLZip?

    To which Delphi? Since XE2 there is System.Zip.TZipFile which would be the right way to move to.
  14. Attila Kovacs

    D2007 in Windows 10 VM

    There are no issues with D2007 on 21H2 at all. I have never seen an app complaining for a file which is on the location it's being searched and the app has the rights to using it.
  15. Attila Kovacs

    FYI: Old security BUG fixed from ZLib

    Was the sechole bad? Can you/someone generate the objs?
  16. Attila Kovacs

    Is TEdit bugged with mobile? Since when?

    do you have any technical explanation for that or are you telling stories here?
  17. Attila Kovacs

    ScrollBox ScrollBar Mouse Tracking

    There is more with these scrolling components. Touch / Pan is not ok as windows translates wm_gesture/pan messages to wm_scroll if the previous pan is still running.... Also, the pan handling in the VCL is wrong https://quality.embarcadero.com/browse/RSP-37027
  18. Attila Kovacs

    INI problem

    "Accepted safety standards" no such thing. He can sue one for many other reasons. Insure yourself.
  19. Well, it was the last option 😉 As the example shows, this pattern hiding something from you. It's not your friend. Do not underestimate that. With time, you won't remember everything. I mean, a thing. You won't remember anything. 😉
  20. After the "Free" the reference is a "dangling pointer". The ShowMessage could still work for centuries but only by luck as the memory where the class was is now free for other things. So no, its not safe. Try to use explicit Free's and you don't have to keep the implementation details in your head. Or keep it there and follow the rules.
  21. Attila Kovacs

    Is Move the fastest way to copy memory?

    that's how it should work actually
  22. Attila Kovacs

    TNetEncoding.URL.Decode question

    it's double encoded "=" = "%3D" "%3D" = "%253D"
  23. Attila Kovacs

    Strange Benchmark Results; Am I Missing Something?

    Nice. Added the x64 asm, enhanced the chunk size calculation, reduced from 8 logical to 4 physical cores (this improves a bit in 64 bit mode / under a given runtime? / on my cpu?). edit: in the IDE 4 is faster, outside the ide 8 is much faster It's now almost twice as fast as my single threaded asm was. So there is a lot of overhead firing up the threads, but still a performance gain. Project1.dpr
  24. Attila Kovacs

    Strange Benchmark Results; Am I Missing Something?

    Ah I see. Also, I missed one 0 in the loop, so the asm above takes ~1 sec on my pc not 100msecs.
  25. Attila Kovacs

    Strange Benchmark Results; Am I Missing Something?

    a good compiler would do something similar: function mod35s: int64; label l1, l2; asm push rdi push rbx mov edi, 1000000000 xor rax, rax mov rbx, 0 mov ecx, 0 @l1: imul edx, edi, -858993459 mov ecx, edi cmp edx, 858993459 jbe @L2 imul edx, edi, -1431655765 cmp edx, 1431655765 cmova ecx, ebx @L2: add rax, rcx dec edi jnz @l1 pop rbx pop rdi ret end;
×