PTCGRAPH InitGraph call generates exception in Debug mode
Original Reporter info from Mantis: julkas
-
Reporter name: Ioulianos Kakoulidis
Original Reporter info from Mantis: julkas
- Reporter name: Ioulianos Kakoulidis
Description:
Following code generates exception on InitGraph call in Debug mode. See - except.JPG in attachment.
After pressing "Break" button - see break_assm.JPG
After pressing "Continue" button program generates expected output and terminates with error - see continue_heaptrc.JPG
Release mode works as expected.
Same behavoir on Wondows 8 64 bit FPC 3.0.4 / Lazarus 2.0.0.
program tgraph;
{$mode tp}
uses
PTCGRAPH,
PTCCRT;
var
grmode, grdriver: smallint;
x, y: integer;
ch: Char;
begin
grdriver := DETECT;
PTCGRAPH.InitGraph(grdriver, grmode, '');
PTCGRAPH.SetColor(white);
ch := PTCCRT.ReadKey;
PTCGRAPH.Line(0, 00, getmaxx, getmaxy);
ch := PTCCRT.ReadKey;
end.
Additional information:
FPC - 3.0.4
Lazarus - 2.0.0
OS - Windows Vista 32bit SP1
CPU - Intel Pentium Dual E2200
GPU - GPU - Intel Q33 Express
RAM - 3GB
Mantis conversion info:
- Mantis ID: 36173
- Version: 3.0.4