Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/05/21 in Posts

  1. Dave Nottage

    Save and get images on iOS

    Since iOS 8, use the PhotoKit framework to access photos in albums: PhotoKit | Apple Developer Documentation I have an import for it, here: https://github.com/DelphiWorlds/Kastri/blob/master/API/DW.iOSapi.Photos.pas Which likely needs updating, because I think I imported it around iOS 9 era. This will not help you however, if you are saving photos as files somewhere. You can retrieve the filename from an asset in the gallery, bearing in mind can be traps in doing so: https://medium.com/@slk11075/traps-for-phasset-how-to-get-filename-from-phasset-67d856e75c64
  2. Here you are sending String converted with TEncoding.ASCII.GetBytes() to TBytes. Why not directly? LSockect.SendData([$1B, 42, 33, Lo(ABitmap.Width), Hi(ABitmap.Width)]);
  3. David Heffernan

    Remote desktop friendly

    Double buffering is absolutely one of the things that you don't do when over RDP. Because then you give up app the benefit of transmitting the logical drawing instructions and instead have to send raster images. But I wouldn't say RDP is double buffering. You don't draw to off screen bitmap and the flip it or blit it. If you want to draw text, you send the text and instructions of where to draw it, and then the actual rendering happens at the other side. But yeah, advice to double buffer is wrong. Correct advice is the opposite. Don't ever double buffer in a remote session. More on that here: https://devblogs.microsoft.com/oldnewthing/20060103-12/?p=32793 This may come as a shock to a lot of Delphi devs for whom the standard reaction to flicker seems to be to enabled DoubleBuffered on the form/control.
  4. Der schöne Günther

    Remote desktop friendly

    The IDE has (or had?) terrible problems with resolution changes, like changing the size of your remote desktop window which also includes connections to Hyper-V VMs. It often got stuck for a minute or completely locked up. It seems they have fixed that with 10.4.2: Delphi 10.4.2: Improvements for Microsoft Remote Desktop sessions – FlixEngineering LLC
  5. ioan

    I will be less active for a few weeks

    Wish you a fast full recovery! Take care!
  6. Attila Kovacs

    Remote desktop friendly

    RDP is a kind of a double buffering, do not use double buffering with RDP
  7. It should not be working. Either it will pass the address of the Pointer itself rather than the address of the TRect, or else it will misinterpret the Pointer as a TBytes. Either way would be wrong. It needs to be either Write(r, sizeof(r)) or WriteData(@r, sizeof(r)).
  8. aehimself

    How to get json array from string?

    Just two notices. If you will ever use Oracle and RetIDList will contain more than 1000 elements, the code will fail. I don't know if any other RDBMS has this limitation though. How trusted is the file? Taking a string value from somewhere and putting it in a SQL command exposes your application to injection attacks.
  9. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    Have you tried without MMX, GExperts etc.?
  10. sjordi

    Are you successful with form factors?

    @Rollo62 and all you're right. I think the main difficulty is where to place the cursor between too much info and not enough, rendering the app worthless I'll tinker a bit over the week-end 🙂
  11. You wish. The Delphi compiler doesn't optimize at that level.
  12. The irrational "Confused debugger" cases seems to move on, its now the third one in short time with Rx1042. Definitively worth to look deeper into it. Maybe we have to wait until patch 1 is online ?
  13. bazzer747

    OnClick Oddity

    Darn! Found the problem. I have code in the dbgrids OnDrawColumnCell event which sets the panel visibility to True, and this is getting run after I click the other panel. Not sure why it should do this but I traced it in the OnDrawColumnCell event.
  14. Uwe Raabe

    I will be less active for a few weeks

    Bli frisk snart.
  15. Rollo62

    I will be less active for a few weeks

    Get well soon, and don't jump on every skateboard from your children, that you get close to
  16. Vandrovnik

    Delphi10.4.2, Theme, closing Modal dialog

    It is already reported: https://quality.embarcadero.com/browse/RSP-33140
  17. Cristian Peța

    XML Parsing and Processing

    IMAGE_FILE_LARGE_ADDRESS_AWARE. I use this also but not enough in some cases. And 64 bit is not yet an option because I don't want both 32 and 64 and there are about 10% with 32bit OS in case of my users. https://github.com/neslib/Neslib.Xml
  18. Your code looks wrong. You want to write the contents of the rect to the stream, but instead your code tries to write the address of the rect variable. I'd also use WriteBuffer here which will check for errors. Your code ignores any write errors because it doesn't check the return value of Write. WriteBuffer does that for you. Replace With m.WriteBuffer(r, SizeOf(r));
  19. Mike Torrettinni

    I will be less active for a few weeks

    @Lars Fosdal Not sure which phone and android version you have, but voice to text has come along way and is pretty good. No reason to be absent 😉 I hope your arm heals fast!
  20. Attila Kovacs

    I will be less active for a few weeks

    just got the footage per FedEx
  21. That's for sure. We could even use more things and types from Spring4D. The main problem, actually - besides some time to integrate - is the deploy of it. Installation is already complex, it's rather complex to add Spring4D as a dependency, worse, as an optional dependency. That's why I'm really looking forward to @Vincent Parrett's DPM, when it's ready, we could deploy several different packages, and it will just download and install whatever dependencies it needs.
  22. I am temporarily disabled due to a fractured (bone fully severed at 75° acute angle) upper left arm after slipping on black ice. A nice clean fracture according to the doctors. No surgery or fancy stabilization planned, and the doctors want me to let the body handle it on its own, varying between letting it hang free and using a sling. Typing one handed on Android is somewhat frustrating, so I'll be less active until the worst pain phase is over.
×