Leaderboard
Popular Content
Showing content with the highest reputation on 03/05/21 in all areas
-
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
-
TBitmap to TBytes for ESC/POS Thermal Printer
Cristian Peța replied to at3s's topic in RTL and Delphi Object Pascal
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)]); -
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.
-
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
-
Wish you a fast full recovery! Take care!
-
RDP is a kind of a double buffering, do not use double buffering with RDP
-
"Variable Required" compiler error only in Delphi 10.4.2
Remy Lebeau replied to Dave Novo's topic in Delphi IDE and APIs
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)). -
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.
-
Several F2084 Internal Error on Delphi 10.4.2
Vandrovnik replied to Davide Angeli's topic in Delphi IDE and APIs
Have you tried without MMX, GExperts etc.? -
@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 🙂
-
Debugger activates breakpoint - do not understand yet why
Anders Melander replied to Daniel's topic in Delphi IDE and APIs
You wish. The Delphi compiler doesn't optimize at that level. -
Debugger activates breakpoint - do not understand yet why
Rollo62 replied to Daniel's topic in Delphi IDE and APIs
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 ? -
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.
-
I will be less active for a few weeks
Uwe Raabe replied to Lars Fosdal's topic in Community Management
Bli frisk snart. -
I will be less active for a few weeks
Rollo62 replied to Lars Fosdal's topic in Community Management
Get well soon, and don't jump on every skateboard from your children, that you get close to -
It is already reported: https://quality.embarcadero.com/browse/RSP-33140
-
XML Parsing and Processing
Cristian Peța replied to pyscripter's topic in RTL and Delphi Object Pascal
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 -
"Variable Required" compiler error only in Delphi 10.4.2
David Heffernan replied to Dave Novo's topic in Delphi IDE and APIs
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)); -
I will be less active for a few weeks
Mike Torrettinni replied to Lars Fosdal's topic in Community Management
@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! -
I will be less active for a few weeks
Attila Kovacs replied to Lars Fosdal's topic in Community Management
just got the footage per FedEx -
Is there an "easy" way to transfert Tlist<T> object into a Spring4D ITlist<T> ?
Wagner Landgraf replied to Stéphane Wierzbicki's topic in Delphi Third-Party
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. -
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.