-
Content Count
3509 -
Joined
-
Last visited
-
Days Won
115
Lars Fosdal last won the day on May 26
Lars Fosdal had the most liked content!
Community Reputation
1857 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
-
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lars Fosdal replied to bravesofts's topic in I made this
TEventually<T> đ -
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lars Fosdal replied to bravesofts's topic in I made this
But you are still blocking, if looping around a wait. Are you going to put a ProcessMessages in that loop? -
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lars Fosdal replied to bravesofts's topic in I made this
Wait = Block. Events = Asynch w/o block. -
I have a 5K 40" Lenovo, that can be split into two "virtual" displays. I can set up different resolutions and scalings on those when I need to test HighDPI. Generally speaking, the test results are so disheartening that I still stick with 100% scaling in the OS, and use BDS in DPI-Unaware mode.
-
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lars Fosdal replied to bravesofts's topic in I made this
Generally speaking I prefer offloading background tasks to a threadpool in-queue. The threadpool messages the main thread when the work is done. The main thread then retrieves the response from the threadpool out-queue.(i.e. mailbox principle). If there are multiple parallell tasks (i.e. a job), the main thread will need to know that, and whenever a thread completes, check if it fullfill the needs of the job and then fire off whatever should happen after the job is complete. There really is no single best way to deal with background processing - except ensuring that the main thread is not blocked. -
How to use Swagger via MARS REST API?
Lars Fosdal replied to KostasR's topic in MARS-Curiosity REST Library
I see there are several attributes relevant for the Swagger data, such as RequestParamAttribute, but I see very few examples of use. Github: search for "Param]" (without the quotes) I woud suggest you experiment with those to see what you get. -
How to use Swagger via MARS REST API?
Lars Fosdal replied to KostasR's topic in MARS-Curiosity REST Library
Ah, so how to generate complete Swagger info from your MARS API? -
How to use Swagger via MARS REST API?
Lars Fosdal replied to KostasR's topic in MARS-Curiosity REST Library
Not sure if I understand your question? Swagger is API documentation. Are you looking for how to generate code for MARS REST based on a Swagger definition? -
@audi30tdi We do all our EHF invoices through third party systems, so I have no Delphi code to offer. Are you looking for the specification of the EHF invoice document or code for sending the document to an http endpoint?
-
RAD Studio 12.3: E2213 Bad packaged unit format
Lars Fosdal replied to Chau Chee Yang's topic in Delphi IDE and APIs
Isn't that the type of error you get when you try to link a .dcu that is for the wrong platform? -
How much RAM for Macbook Pro M4 to Run RAD Studio 12?
Lars Fosdal replied to amit's topic in General Help
Apple's RAM and disk prices are ridiculous, but personally I'd go for at least 24GB and 1TB. My MBP M1 has 32GB/2TB. -
Looks fixed now.
-
IMO, if you need multiple values for a field, you should use a list element. Duplicate key/value pairs in JSON just doesn't make sense. https://JsonLint.com does not like them either.
-
Delphi 11.1 + patches - No debug source / breakpoints?
Lars Fosdal replied to Lars Fosdal's topic in Delphi IDE and APIs
Sorry, no updates. Not using Delphi much, except from small utils. Haven't checked on the problem since 12.3. -
Option to set read topic on Unread Content list
Lars Fosdal replied to ĆukaszDe's topic in Community Management
AFAIK, no. You could run it through an RSS reader. Perhaps there is one that can ignore topics the way you desire?