I have following part of program to make DOS Graphics with fclimage. Therefore the TFPfclCanvas class.
constructor TFPfclCanvas.Create; //TFPfclCanvas, weil eigene neu abgeleitete Klasse
begin
inherited;
FHashWidth := DefaultHashWidth;
FFont := DoCreateDefaultFont;
FPen := DoCreateDefaultPen;
FBrush := DoCreateDefaultBrush;
FConsole:= TPTCConsoleFactory.CreateNew;
FFormat := TPTCFormatFactory.CreateNew(32, $00FF0000, $0000FF00, $000000FF);
FConsole.Open('Canvas',SCREENWIDTH,SCREENHEIGHT,FFormat,1); //Here the debugger does stop
FSurface := TPTCSurfaceFactory.CreateNew(SCREENWIDTH, SCREENHEIGHT, fformat);
end;
Now i get the EPTCError as shown in the thread title.
What is going wrong here? Why i get this error?