[fpc-pascal] Access Violation on second compile with FPC Text IDE

C Western l at c-m-w.me.uk
Thu Nov 12 09:24:44 CET 2020


On 11/11/2020 22:26, James Richters via fpc-pascal wrote:
> I'm suddenly getting an access violation when compiling after a file changed with the FPC text IDE:
>
> Recompiling because of I:\Programming\Gcode\Mill\pastep.pas
> sysinit.pp(0) Error: Compilation raised exception internally
> Error: Compiler exited
> Error: Access violation
>
> I haven't changed anything as far as FPC goes, and I'm using the same procedure I always have.. I make my edits in notepad++ then go to the text IDE and compile it.. it detects which files changed and re-compiles those.. it normally works fine, but now I am always getting this.  I restart the text IDE and compile it and run it and it's fine.. no problems, I make even a minor change, and try to re-compile it and bam I get this access violation error.  Does anyone know what this error actually means or how to track it down?
>
>   James
>
Is this with a recent trunk? I have started seeing this recently; an 
interface change in one unit causes a crash when compiling another unit. 
The workaround is to force recompilation of everything, which I do by 
deleting all the compiled files for the program. It is tricky to report 
as a bug, as it is intermittent, and I have only seen it on a large program.

Colin



More information about the fpc-pascal mailing list