I think I see the problem but don't know why it's occurring nor how to fix it. Let's get the 'required stuff' out of the way, first.
Lazarus: 1.8.4
FPC Version: 3.0.4
Windows 10 build 17134
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
begin
writeln('Test');
readln;
end.
I'm new to Pascal, let's face it, I'm 70+ and bored! I'm also a programmer who's worked in C, BASIC (god the varieties of BASIC), FORTRAN, COBOL, RPG (Ugh!!) I've been playing with MS Visual Basic but wanted a little variety and something that would cross system boundaries (Apple, Windows, etc)
Symptoms: Though this is a nothing program, it appear to run one time (F9) then results in "Project raised exception class 'External: SIGSEGV"
Attempting to close the open DOS windows asks if I want to terminate debugging? So obviously the program run by the debugger hasn't ended.
To be more exact:
__F9
__Dos Box Opens
__Press Return (respond to readln)
__Exception Raised (click OK)
__Assembler appears with Binary 0 contents
__Close the DOS window
If I run it without debugging it runs and terminates successfully.
I thought I'd run through the School Free Ware course ... but I can't get past lesson one! Any help or suggestions for an old novice would be appreciated.
//al