[fpc-pascal] Compilation raised exception internally

Michael Van Canneyt michael at freepascal.org
Fri Apr 25 14:24:03 CEST 2025



On Fri, 25 Apr 2025, Luca Olivetti via fpc-pascal wrote:

> Hello,
>
> recently I get a lot of these errors (i.e., I modify something, in lazarus 
> click on "compile" or "run", and I get the error).
> If I then use "clean up & build.." the compilation ends without errors.
> I recently switched the virtual machine I use for windows development from 
> virtualbox to qemu/virt-manager, maybe that's the cause but I find it hard to 
> believe.
>
> Here are the messages of the last error
>
> Hint: (11030) Start of reading config file 
> D:\pp-fpdebug\bin\i386-win32\fpc.cfg
> Hint: (11031) End of reading config file D:\pp-fpdebug\bin\i386-win32\fpc.cfg
> Free Pascal Compiler version 3.2.2 [2024/12/13] for i386
> Copyright (c) 1993-2021 by Florian Klaempfl and others
> (1002) Target OS: Win32 for i386
> (3104) Compiling cockpitserve.lpr
> (3104) Compiling labelprinter.pas
> d:\24041_sese\servidor\labelprinter.pas(118,60) Error: (1026) Compilation 
> raised exception internally
> Fatal: (1018) Compilation aborted
> An unhandled exception occurred at $004605C6:
> EAccessViolation: Access violation
>  $004605C6
>  $0053878D
>  $00536DE9
>  $005395F1
>  $0053961D
>  $0053961D
>  $0053961D
>  $0053A3AD
>  $0053D5BF
>  $0054B614
>  $0054C1E5
>  $00436BFC
>  $004B81A6
>  $004B7862
>  $004B7FC4
>  $004B7A0A
>  $004B7FC4
>
> Error: D:\pp-fpdebug\bin\i386-win32\ppc386.exe returned an error exitcode
>
>
> The line where it stops is usually (but not always) the same:
>
> TTabZebraPrinters = specialize TDeviceTabs<TZebraPrinter>;

Try to make sure you don't have circular references. 
It happens often in such cases.

Michael.


More information about the fpc-pascal mailing list