Access Violation in a fpcunitproject1 using the heaptrc unit
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
I got an AV when I try to run a test-case that uses the heaptrc unit.
ps. I can't get if this error is more related to FPC or Lazarus.
Steps to reproduce:
. Open Lazarus IDE and create a new FPUnit project, menu "File | New ... > Project : FPCUnit Test Application", save it in some place;
. At the Project menu, choose Project Inspector", and in the "Required Packags", righ click, add the "fpcunittestrunner" package and save it again;
. Now, in the fpcunitproject1
uses section, declare the heaptrc
as first unit, eg:
program fpcunitproject1;
{mode objfpc}{
H+}
uses
heaptrc, Interfaces, ...
. Compile and run the program;
. Enjoy the Access Violation. :-)
Additional information:
The error is:
[Window Title]
Error
[Content]
Project fpcunitproject1 raised exception class 'External: SIGSEGV'.
At address 420BE9
[OK]
And the stack trace:
#0 INIT$_$FPINTRES at :0
#1 ?? at :0
#2 INIT$_$FPINTRES at :0
#3 ?? at :0
#4 INITLAZUTF8 at winlazutf8.inc:545
#5 LAZUTF8_$$_init at :3608
#6 fpc_initializeunits at :0
#7 main at fpcunitproject1.lpr:10
Mantis conversion info:
- Mantis ID: 29558
- Version: 3.1.1