i overwrited memory by some prevous dinamic-array operation. and looks that corrupted heap-memory allocator structures
If by any chance you can test your code an Linux (e.g. Virtualbox), then there is a tool called valgrind / memcheck. It is excellent for finding incorrect memory accesses.
But to start with, make sure you test with all of the FPC options
- range checks, and all -Criot
- heaptrc -gh
and set the environment HEAPTRC=keepreleased
(though the latter will increase the mem usage of your app, if it runs for longer)
I wanna debug an RTL sources on my problem dynamic array
Then you must build FPC yourself.
The easiest is likely to use fpcupdeluxe (though I have no experience of my own with this).
The wiki should have content explaining how to build fpc (and there may be older posts on the forum).
Before you do, you may want to check that the LCL and other Lazarus packages are all build with debug info.
- Most of them will include the options from "tools > configure build lazarus"
- But the best way is probably to add debug info via "Additions and Overrides" in the "project settings" (there is a very good page an this on the wiki)