HP SunSoft Pascal 4.0 Uživatelský manuál Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 333
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
14 Pascal 4.0 User’s Guide
2
Using a Sample Program with Segmentation Violation
A segmentation violation occurs when your program tries to reference memory
outside your address space. The operating system detects this action and
generates an error message. Following is an example program, SegViol.p,
which contains a segmentation violation:
Compiling and Running the Program
When you compile and run the program, you receive output similar to the
following. The first line indicates the name of the offending signal—in this
case, a segmentation violation.
program SegmentationViolation;
type
Pinteger = ^integer;
procedure ErrorInHere;
var
IntVar: integer;
NullPtr: Pinteger;
begin
NullPtr := nil;
{ Next statement causes a SEGV }
IntVar := NullPtr^;
end;
procedure Call1;
procedure Call2;
begin
ErrorInHere;
end;
begin
Call2;
end;
begin
Call1;
end.
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 332 333

Komentáře k této Příručce

Žádné komentáře

BodyCraft X Press manuales

Manuales del propietario y guías del usuario para Gimnasio, Gimnasia Y Entrenamiento Con Pesas BodyCraft X Press.
Ofrecemos 3 manuales en pdf BodyCraft X Press para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Gimnasio, Gimnasia Y Entrenamiento Con Pesas BodyCraft

Modelos Tipo de documento
Option Manual de usuario   Bodycraft L5041 Strata Gym Leg Press, 10 paginas
GXP Manual de usuario   BodyCraft Home Gym GXP, 9 paginas