Jump to content

Attila Kovacs

Members
  • Content Count

    1937
  • Joined

  • Last visited

  • Days Won

    25

Everything posted by Attila Kovacs

  1. it's 4 bytes only and the modifier (to make it lighter) is also 4 bytes like 🧑🏿‍🦽 is D8 3E DD D1 = 🧑 D8 3C DF FF = skin tone modifier 20 0D = zero width joiner D8 3E DD BD =🦽 and how to find out that it's one emoji? I'm afraid you have to parse the codes and go after the rules defined in the RFC.
  2. Attila Kovacs

    How to "dim" a TabSheet?

    Ok, it's not a memory leak. It's GDI leak 😉 You are right, there is not necessarily an initialized canvas. I assumed it's a TPanel already. By the way, for some reason which I can't recall, I'm using a TImage and its TBitmap, not only TBitmap. In order: Form -> TPanel client aligned -> TImage client aligned and blurred. (To "lock" an application) Maybe to give the painting stuff away....
  3. Attila Kovacs

    How to "dim" a TabSheet?

    I can't see ReleaseDC. Also, instead of DC you could pass Canvas.Handle. Also, you could tune it with only repainting clipping area's. Btw, for me it works with pf32bit.
  4. Attila Kovacs

    Delphi WAT of the day

    Ahh, I see. @Stefan Glienke So you mean, it should not compile if the integer size and signedness does not match to any of the method declarations? Or should it bring warnings? I'd love to see those messages, could be interesting!
  5. Attila Kovacs

    Delphi WAT of the day

    @Stefan Glienke yop, I've seen that, still... anyway reload my comment again 🙂
  6. Attila Kovacs

    Delphi WAT of the day

    restart, mom if I add procedure test(a: Int64; b: Int32); overload; begin Writeln('Int64/Int32'); end; everything is ok again. Why should the compiler decide for Int64 if it fits into Int32? We know that the type cast in the const declaration is just some placeholder.
  7. Attila Kovacs

    How to "dim" a TabSheet?

    @aehimself I see. I'd add a client aligned panel on the top of it, drawing a dimmed/blurred image from the things below and adding some controls to this panel to interact with. You just have to make sure that the underlying controls can't be triggered/selected with pressing tab. Perhaps you need an intermediate container tab on each sheet to be able to disable the whole sheet but not the dimmed/blurred one.
  8. Attila Kovacs

    How to "dim" a TabSheet?

    Could you define the symmetric difference of the sets "Everything" and "important stuff" ? We have no idea what else could be on the page which would make sense to dim but not the "important stuff". Are you putting unimportant stuff onto the forms? 🙂 Enemy deception? 🙂
  9. Attila Kovacs

    Range Check Error ERangeError

    I've found some cardinal() casts in some legacy code for pointers 😉 @luebbe are those casts in ICS Demo also for pointers or for integer numbers?
  10. Attila Kovacs

    Range Check Error ERangeError

    Reload my comment. 😛
  11. Attila Kovacs

    Range Check Error ERangeError

    @Stefan Glienke I can't reproduce the yellow one in Berlin. Strange. Edit: ahhhh, it was XE. Okay. Sorry.
  12. Attila Kovacs

    Range Check Error ERangeError

    This is the very same analogy as 10 billion flies can't be wrong. You should really go like @Remy Lebeau suggested. Optionally you could read up signed and unsigned data.
  13. Attila Kovacs

    Range Check Error ERangeError

    then why are you asking?
  14. Attila Kovacs

    QueryPerformanceCounter precision

    I thought all the time he is comparing Δt's. What is the point to measure it in seconds?
  15. Attila Kovacs

    QueryPerformanceCounter precision

    https://www.esaitech.com/symmetricom-pcie-1000-ocxo-syncpoint-ptp-ieee-1588-computer-precision-timing-card.html
  16. Attila Kovacs

    Target machine actively refused connection

    netstat -anob >netstat.txt look for ibserver.exe on which interfaces and ports is listening
  17. Attila Kovacs

    Delphi 10.4 Portable

    this is indeed annoying that you can't insert text before a quote if you did not add some text prior quoting/inserting code block is there a trick for that? Edit: aha, drag and drop the block with the arrows on the topleft. phew....
  18. Attila Kovacs

    Delphi 10.4 Portable

    where exactly is the control right mouse button on a cell phone?
  19. Attila Kovacs

    Target machine actively refused connection

    did you try with <yourip> instead of localhost? maybe it's not binding on lo by default?
  20. Attila Kovacs

    Determining why Delphi App Hangs

    I need some clarifications here too, as I'm not using timers anywhere, maybe my 3rd parties does, I don't know, but what is "wrong time" for a timer? I can't remember having seen a property like OnWrongTime or OnRightTime. Is it possible that you are referring here to "wrong code" instead?
  21. Attila Kovacs

    10.4.2: Refactor popup menu takes up to 5 min to display

    that many "C:\" 's are also suspicious but I have no idea why is it stickig at it something in the path? a recursive dir link?
  22. Attila Kovacs

    10.4.2: Refactor popup menu takes up to 5 min to display

    Do you have circular unit references?
  23. Attila Kovacs

    Determining why Delphi App Hangs

    You can't just pick a piece of code and put it in the background thread. You can do it with some code, but not every time. No, you can't do that. You can do it in some cases, but not every time. You know exactly what I meant with that. I'm not against threading but we should keep the things there where they are.
  24. Attila Kovacs

    Determining why Delphi App Hangs

    Oo yes, and if you giving status reports, you are the ProgressBar 😛
  25. Attila Kovacs

    Determining why Delphi App Hangs

    "Most obvious problem is that such code becomes re-entrant." Which code? The one starts the blocking loop or the one starts the thread? They have to backed up both. Don't they? "may respond to user input slowly" Yes. Just like a thread "reacts" slowly, when you want to cancel it and it just won't stop right away because it's too busy to check if there was a stop signal. "but all the calls to Application.ProcessMessages will make that long operation running even longer" You are right. 2 cores are more than 1. But no, because we have to move a lot of data between the threads. Many times. And this is not something to ignore. Putting a piece of blocking code into a thread just because the GUI, could be rocket science. "Imagine connecting to some web .. Application.ProcessMessages will not help you with that." Yeah, I can only agree with that, and I'm doing the same and yet I did not think of that. I can't tell anything to the android part.
×