Type-Safe Delphi Collections with Generics
Replace unsafe casts in Delphi collections with compile-time generics. Learn how generic lists and custom stacks catch type errors at build time, plus trade-offs in binary size and compile time.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Replace unsafe casts in Delphi collections with compile-time generics. Learn how generic lists and custom stacks catch type errors at build time, plus trade-offs in binary size and compile time.
Reduce database round trips when inserting many rows with FireDAC Array DML, then verify driver support before production.
A Delphi service that opens a connection per request or shares objects across threads will exhaust pools and leak handles. Use one pooled FireDAC connection per logical request, explicit transactions, parameterized SQL, and a least-privilege database identity.
Row-by-row inserts in Delphi often bottleneck on network round trips. FireDAC Array DML batches them into a single call, but memory and error-handling trade-offs apply.
Batch inserts, updates, and deletes with RAD Studio FireDAC Array DML to cut database round-trips.
Concatenating user input into SQL strings is a liability. See how to use TFDQuery parameters in Delphi to separate code from data, reduce injection risk, and avoid type-mapping surprises.
Learn how to diagnose and fix EAccessViolation errors in RAD Studio VCL applications by identifying nil and dangling pointers using the integrated debugger and FastMM4.
LiveBindings lets Delphi devs tie UI controls to data sources declaratively, cutting boilerplate but adding RTTI overhead. This post walks through a simple VCL example, shows how to set up bindings, highlights trade‑offs, and offers a quick sanity check.
Fetch only the rows your Delphi grid needs by binding PageSize and Offset to FireDAC TFDQuery, with limits and verification steps.