TL;DR Do not keep pointers to objects in memory that can be relocated. SetLength can relocate the memory [WayBack] Pointers are dangerous – twm’s blog Via:*[WayBack] Pointers can be really helpful, especially they can improve performance and readability, but they are also dangerous. I spent nearly a day tracking down… – Thomas Mueller (dummzeuch) – […]
Weiterlesen...