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.
Stop relying on risky TObject casts. Learn how to use Delphi Generics to move type-checking from runtime to compile-time, reducing crashes and boilerplate code.
Embed a FastReport designer in Delphi, bind a dataset, generate runtime reports, export to PDF, and clean up resources to avoid leaks. Follow the step‑by‑step guide for a stable reporting solution.
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.
Delphi’s streaming system persists only the properties it can discover through RTTI. Learn how published declarations, stored directives, and ownership rules control what reaches the .dfm file—and how to verify the round-trip.