Freepascal 3.2.0 release candidate (Announce)
Interresting.
I've tracked the problem and the code with caused this behaviour was in my include file DEFINES.INC which is called from all my units.
And there is this line: {$IFDEF DEBUG}{$CHECKPOINTER ON}{$ENDIF}
But I've never selected the option "-gh"
The Freepascal help for the {$CHECKPOINTER} says this:
"The {$CHECKPOINTER} directive turns heap pointer checking on (value ON) or off (value OFF). If heap pointer checking is on and the code is compiled with the -gh (heaptrace) option on, then a check is inserted when dereferencing a pointer. The check will verify that the pointer contains a valid value, i.e. points to a location that is reachable by the program: the stack or a location in the heap. If not, a run-time error 216 or 204 is raised.
If the code is compiled without -gh switch, then this directive has no effect. Note that this considerably slows down the code."
1) From the text above does not follow that the tracking of the unfreed memory blocks should be on. (especially when no "-gh" switch is set)
2) The FPC 3.2.0 behaviour is different from FPC 3.0.4 so the first or the latter does it wrong.
---
DOS-u-akbar!
Complete thread:
- Freepascal 3.2.0 release candidate - Laaca, 30.03.2020, 20:41 (Announce)
- Freepascal 3.2.0 release candidate - marcov, 31.03.2020, 10:00
- Freepascal 3.2.0 release candidate - Rugxulo, 31.03.2020, 19:37
- Freepascal 3.2.0 release candidate - Laaca, 01.04.2020, 23:34
- Freepascal 3.2.0 release candidate - RayeR, 02.04.2020, 14:57
- Freepascal 3.2.0 release candidate - marcov, 03.04.2020, 14:53
- Freepascal 3.2.0 release candidate - Rugxulo, 12.04.2020, 14:10
- Freepascal 3.2.0 release candidate - Laaca, 12.04.2020, 16:41
- Freepascal 3.2.0 release candidate - Laaca, 25.04.2020, 19:01
- Freepascal 3.2.0 release candidate - marcov, 26.04.2020, 17:54
- Freepascal 3.2.0 release candidate - Rugxulo, 29.04.2020, 09:22
- Freepascal 3.2.0 release candidate - Laaca, 29.04.2020, 23:03
- Freepascal 3.2.0 release candidate - marcov, 30.04.2020, 19:48
- Freepascal 3.2.0 release candidate - marcov, 26.04.2020, 17:54
- Freepascal 3.2.0 release candidate - Laaca, 25.04.2020, 19:01
- Freepascal 3.2.0 release candidate - Laaca, 12.04.2020, 16:41
- Freepascal 3.2.0 release candidate - Rugxulo, 12.04.2020, 14:10
- Freepascal 3.2.0 release candidate - Laaca, 01.04.2020, 23:34