You are on page 1of 6

Cc thng ip li trong Pascal

Borland Pascal pht sinh ra 2 loi thng ip li: - Cc thng ip li bin dch (compiler error messages) - Cc thng ip li thi hnh (run-time error messages). Cc thng ip li bin dch (Compiler Error Messages) Nu l 1 li bin dch xy ra khi bn ang dch t bn trong IDE (1 chun giao din ca a cng), Borland Pascal s kch hot ca s Edit v t con tr ti v tr li trong m ngun ca bn. Nu li xy ra khi bn ang bin dch dng lnh, Borland Pascal hin th thng ip li cng s v dng lnh b li; 1 du st (^) trong dng lnh c hin th cho bit v tr ca li. Cc thng ip li thi hnh (Run-time Error Messages) Nu chng trnh ca bn pht sinh 1 li khi thi hnh, n s kt thc v thng ip ny s xut hin: Run-time error <nnn> at <xxxx:yyyy> Trong : nnn l s th t ca li thi hnh. xxxx:yyyy l a ch ca li thi hnh. 1. Cc thng ip li thi hnh (Run-time Error Messages)
STT (#) 1 2 3 4 5 6 12 15 16 17 18 100 101 102 103 104 Thng ip li (Error Message) Invalid function number File not found Path not found Too many open files File access denied Invalid file handle Invalid file access code Invalid drive number Cannot remove current directory Cannot rename across drives No more files Disk read error Disk write error File not assigned File not open File not open for input Ch thch (Comment) S hm khng hp l Khng tm thy file Khng tm thy ng dn M qu nhiu file File khng cho truy cp iu khin file khng hp l M truy cp file khng hp l S a khng hp l Khng th g b th mc hin thi Khng th i tn a File mt Li c a Li ghi a File khng c gn File khng c m File khng c m c vo 1

105 106 150 151 152 154 156 157 158 159 160 161 162 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216

File not open for output Invalid numeric format Disk is write-protected Bad drive request struct length Drive not ready CRC error in data Disk seek error Unknown media type Sector Not Found Printer out of paper Device write fault Device read fault Hardware failure Division by zero Range check error Stack overflow error Heap overflow error Invalid pointer operation Floating point overflow Floating point underflow Invalid floating point operation Overlay manager not installed Overlay file read error Object not initialized Call to abstract method Stream registration error Collection index out of range Collection overflow error Arithmetic overflow error General Protection fault

File khng c m ghi ra nh dng s khng hp l a ch chng ghi Chiu di ca cu trc yu cu li a khng sn sng Li CRC trong d liu Li nh v a Khng bit kiu phng tin Khng tm thy sector My in ht giy Li thit b ghi Li thit b c Phn cng khng thch hp Li chia cho 0 Li kim tra vng Li trn ngn xp Li trn vng nh Ton t con tr khng hp l Li trn con tr ng Li ht con tr ng Ton t con tr ng khng hp l Qun l overlay khng c ci t Li c file overlay i tng khng c khi to Gi 1 phng thc tru tng Li ng k lung Tp hp ch s nm ngoi vng Li trn tp hp Li trn s hc Li bo v tng qut

2. Cc thng ip li bin dch (Compiler Error Messages 1-99)


STT (#) 1 2 3 4 5 6 7 8 10 11 12 13 14 Thng ip li (Error Message) Out of memory Identifier expected Unknown identifier Duplicate identifier Syntax error Error in real constant Error in integer constant String constant exceeds line Unexpected end of file Line too long Type identifier expected Too many open files Invalid file name Ch thch (Comment) Trn b nh Tn ch khai bo Tn (nh danh) khng bit Trng tn Li c php Li trong hng s thc Li trong hng s nguyn Hng s chui vt qu dng Thiu kt thc file Dng qu di Tn kiu ch khai bo M qu nhiu file Tn file khng hp l 2

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62

File not found Disk full Invalid compiler directive Too many files Undefined type in pointer def Variable identifier expected Error in type Structure too large Set base type out of range File components may not be files or objects Invalid string length Type mismatch Invalid subrange base type Lower bound greater than upper bound Ordinal type expected Integer constant expected Constant expected Integer or real constant expected Pointer Type identifier expected Invalid function result type Label identifier expected BEGIN expected END expected Integer expression expected Ordinal expression expected Boolean expression expected Operand types do not match Error in expression Illegal assignment Field identifier expected Object file too large Undefined external Invalid object file record Code segment too large Data segment too large DO expected Invalid PUBLIC definition Invalid EXTRN definition Too many EXTRN definitions OF expected INTERFACE expected Invalid relocatable reference THEN expected TO or DOWNTO expected Undefined forward Invalid typecast Division by zero

Khng tm thy file a y Ch th bin dch khng hp l Qu nhiu file Con tr hin hnh khng xc nh kiu Tn bin ch khai bo Li trong kiu Cu trc qu rng Thit lp da trn kiu nm ngoi vng Cc thnh phn ca file c th khng phi l file hoc cc i tng di chui khng hp l Kiu khng ph hp Kiu vng con c s khng hp l Gii hn di ln hn gii hn trn Kiu th t ch khai bo Hng s nguyn ch khai bo Hng s ch khai bo Hng s nguyn hoc thc ch khai bo Tn kiu con tr ch khai bo Kiu kt qu hm khng hp l Tn nhn ch khai bo Thiu begin Thiu end Biu thc nguyn ch khai bo Biu thc th t ch khai bo Biu thc logic ch khai bo Kiu ton hng khng ph hp Li trong biu thc Ch nh bt hp php Tn trng ch khai bo i tng file qu ln Khng c xc nh bn ngoi Bn ghi i tng file khng hp l Phn on m qu ln Phn on d liu qu ln Thiu Do nh ngha Public khng hp l nh ngha Extrn khng hp l nh ngha Extrn qu nhiu Thiu Of Thiu Interface Tham chiu nh v li khng hp l Thiu Then Thiu To hoc Downto Hng khng xc nh Kiu b cc khng hp l Chia cho 0 3

63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

Invalid file type Cannot read or write variables of this type Pointer variable expected String variable expected String expression expected Circular unit reference Unit name mismatch Unit version mismatch Internal stack overflow Unit file format error IMPLEMENTATION expected Constant and case types do not match Record or object variable expected Constant out of range File variable expected Pointer expression expected Integer or real expression expected Label not within current block Label already defined Undefined label in preceding statement part Invalid @ argument UNIT expected ";" expected ":" expected "," expected "(" expected ")" expected "=" expected ":=" expected "[" or "(." expected "]" or ".)" expected "." expected ".." expected Too many variables Invalid FOR control variable Integer variable expected Files and procedure types are not allowed here

Kiu file khng hp l Khng th c hoc ghi cc bin ca kiu ny Bin con tr ch khai bo Bin chui ch khai bo Biu thc chui ch khai bo Tham chiu n n v vng Tn n v khng ph hp Phin bn n v khng ph hp Trn ngn xp trong Li nh dng n v file Implementation ch khai bo Cc kiu hng v trng hp khng ph hp Bin bn ghi hoc i tng ch khai bo Hng nm ngoi vng Bin file ch khai bo Biu thc con tr ch khai bo Biu thc nguyn hoc thc ch khai bo Nhn khng nm trong khi hin thi Nhn c nh ngha Nhn cha nh ngha trong phn khai bo (cu lnh) trc i s @ khng hp l Thiu Unit Thiu ; Thiu : Thiu , Thiu ( Thiu ) Thiu = Thiu := Thiu [ hoc (. Thiu ] hoc .) Thiu . Thiu .. Qu nhiu bin Bin iu khin vng For khng hp l Bin nguyn ch khai bo Kiu file hoc th tc khng cho php y

3. Cc thng ip li bin dch (Compiler Error Messages 100-170)


(STT) # 100 Thng ip li (Error Message) String length mismatch Ch thch (Comment) Chiu di chui khng ph hp

101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 121 122 123 124 126 127 128 129 130 131 133 134 135 136 137 138 139 140 141 142 143 144 145 146

Invalid ordering of fields String constant expected Integer or real variable expected Ordinal variable expected INLINE error Character expression expected Too many relocation items Overflow in arithmetic operation No enclosing FOR, WHILE or REPEAT statement Debug information table overflow CASE constant out of range Error in statement Cannot call an interrupt procedure Must be in 8087 mode to compile this Target address not found Include files are not allowed here No inherited methods are accessible here Invalid qualifier Invalid variable reference Too many symbols Statement part too large Files must be var parameters Too many conditional symbols Misplaced conditional directive ENDIF directive missing Error in initial conditional defines Header does not match previous definition Cannot evaluate this expression Expression incorrectly terminated Invalid format specifier Invalid indirect reference Structured variables are not allowed here Cannot evaluate without System unit Cannot access this symbol Invalid floating point operation Cannot compile overlays to memory Pointer or procedural variable expected Invalid procedure or function reference Cannot overlay this unit Too many nested scopes File access denied

Th t cc trng khng hp l Hng chui ch khai bo Bin nguyn hoc thc ch khai bo Bin s th t ch khai bo Li Inline Biu thc k t ch khai bo Qu nhiu i tng c nh v li Trn trong ton t s hc Khng ngn cch cu lnh For, While hoc Repeat Trn bng thng tin g ri Hng Case nm ngoi vng Li trong cu lnh Khng th gi 1 th tc ngt Phi bin dch trong kiu 8087 a ch ch khng tm thy Cc file i km khng cho php y Cc phng thc tha k khng c s dng y Quyn (hn nh) khng hp l Tham chiu bin khng hp l Qu nhiu k hiu (biu tng) Phn cu lnh qu rng Cc file phi c tham s var Qu nhiu k hiu iu kin Ch th iu kin t sai v tr Thiu ch th Endif Li trong khi to iu kin xc nh Phn u khng ph hp vi nh ngha trc Khng th nh gi biu thc ny Kt thc biu thc sai nh dng c ch ra khng hp l Tham chiu gin tip khng hp l Cc bin cu trc khng cho php y Khng th nh gi khi thiu n v System Khng th truy cp k hiu (biu tng) ny Ton t con tr ng khng hp l Khng th bin dch file vo b nh Bin con tr hoc bin th tc ch khai bo Tham chiu hm hoc th tc khng hp l Khng th overlay n v ny Qu nhiu mc tiu xp lng nhau File truy cp b t chi

147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170

Object type expected Local object types are not allowed VIRTUAL expected Method identifier expected Virtual constructors are not allowed Constructor identifier expected Destructor identifier expected Fail only allowed within constructors Invalid combination of opcode and

Kiu i tng ch khai bo Cc kiu i tng cc b khng c cho php Virtual ch khai bo Tn phng thc ch khai bo Constructors o khng c cho php Tn Constructor ch khai bo Tn Destructor ch khai bo Li ch cho php bn trong Constructor T hp ca Opcode v cc ton hng khng

operands hp l Memory reference expected Tham chiu b nh ch khai bo Cannot add or subtract relocatable Khng th cng hoc tr cc k hiu nh v symbols Invalid register combination 286/287 instructions are not enabled Invalid symbol reference Code generation error ASM expected Duplicate dynamic method index Duplicate resource identifier Duplicate or invalid export index Procedure or function identifier expected Cannot export this symbol Duplicate export name Executable file header too large Too many segments li T hp thanh ghi khng hp l Cc ch lnh 286/287 khng c cho php Tham chiu k hiu khng hp l M pht sinh li ASM ch khai bo Trng ch mc phng thc ng Trng tn ti nguyn Trng hoc ch mc xut khng hp l Tn th tc hoc hm ch khai bo Khng th xut k hiu ny Trng tn xut Header ca file thi hnh qu rng Qu nhiu phn on

You might also like