10 Tin 2k11 - THPT Chuyên Lương Thế Vinh Đồng Nai Data Structures + Algorithms = Programming Thursday, 02-05-24, 4:12 AM
Site menu
Statistics

Total online: 1
Guests: 1
Users: 0
Clock
Why Can't We Be Friends
Main » 2011 » August » 2 » Các lỗi Exit Code do Run-Time của FreePascal
3:15 PM
Các lỗi Exit Code do Run-Time của FreePascal



Run-time errors (Lỗi khi thực hiện chương trình)



Applications generated by Free Pascal might generate Run-time error when certain abnormal conditions are detected in the application. This appendix lists the possible run-time errors and gives information on why they might be produced.

Chương trình được viết bởi Free Pascal có thể sinh ra các lỗi chạy thực (Run-Time Error) khi nhưng điều kiện khác thường được dò thấy trong chương trình. Danh sách sau liệt kê các lỗi chạy thực (Run-time Error) và các thông tin về lỗi đó.



1 Invalid function number An invalid operating system call was attempted.

Thực hiện 1 hàm số vô nghĩa hoặc thực hiện 1 lời gọi hệ điều hành vô nghĩa.



2 File not found Reported when trying to erase, rename or open a non-existent file.

Không tìm thấy file. Lỗi được báo khi có những lệnh Erase, Rename hoặc là Mở một file không tồn tại.



3 Path not found Reported by the directory handling routines when a path does not exist or is invalid.

Không tìm thấy file. Lỗi được báo khi đường dẫn đến file không tìm thấy được hoặc vô nghĩa.

Also reported when trying to access a non-existent file.

Cũng có thể được báo khi có lệnh truy cập 1 file không tồn tại.



4 Too many open files The maximum number of currently opened files by your process has been reached. Certain operating systems limit the number of files which can be opened concurrently, and this error can occur when this limit has been reached.

Quá nhiều file đã mở. Chương trình đã đạt tới giới hạn file được mở. Tuỳ hệ điều hành mà giới hạn file được mở khác nhau, và lỗi này được báo khi số file mở đạt tới giới hạn đó.



5 File access denied Permission accessing the file is denied. This error might be caused by several reasons:

Sự truy cập file bị từ chối. Lỗi này xảy ra khi 1 trong những lỗi sau xãy ra:

• Trying to open for writing a file which is read only, or which is actually a directory.

Có lệnh thực hiện ghi lên file có thuộc tính chỉ đọc (Read-only) hoặc đó chỉ là đường dẫn.

• File is currently locked or used by another process.

File hiện thời bị khoá hoặc bị chiến dụng bởi 1 ứng dụng khác.

• Trying to create a new file, or directory while a file or directory of the same name already exists.

Có lệnh tạo 1 file mới, hoặc 1 đường dẫn mới trùng với 1 file hoặc 1 đường dẫn đã tồn tại.

• Trying to read from a file which was opened in write only mode.

Có lệnh thực hiện đọc 1 file chỉ có thuộc tính chỉ ghi (Write-only)

• Trying to write from a file which was opened in read only mode.

Có lệnh thực hiện ghi vào 1 file đã mở với chế độ chỉ đọc (Read-only)

• Trying to remove a directory or file while it is not possible.

Có lệnh thực hiện xoá (gỡ) 1 đường dẫn hoặc 1 file không có thực

• No permission to access the file or directory.

Quyền truy cập vào file bị khoá.



6 Invalid file handle If this happens, the file variable you are using is trashed; it indicates that your memory is corrupted.

File thực hiện vô nghĩa. Nếu lỗi này xảy ra, biến file đang được sử dụung đã bị lỗi; có nghĩa là bộ nhớ đã bị lỗi.



12 Invalid file access code Reported when a reset or rewrite is called with an invalid FileMode value.

Mã truy cập file vô nghĩa. Lỗi được báo khi lệnh Reset hoặc Rewrite được gọi với 1 giá trị chế độ File vô nghĩa.



15 Invalid drive number The number given to the Getdir or ChDir function specifies a nonexistent disk.

Ổ đĩa vô nghĩa. Số được trả bởi hàm Getdir hoặc ChDir chỉ 1 ổ đĩa không tồn tại



16 Cannot remove current directory Reported when trying to remove the currently active directory.

Không thể xoá đường dẫn hiện thời. Lỗi được báo khi có lệnh xoá 1 đường dẫn đang được sử dụng.



17 Cannot rename across drives You cannot rename a file such that it would end up on another disk or partition.

Không thể đổi tên file mà trỏ đến 1 ổ đĩa khác hoặc 1 phân vùng khác của ổ đĩa.



100 Disk read error An error occurred when reading from disk. Typically when you try to read past the end of a file.

Lỗi đọc đĩa. Lỗi xãy ra trong khi đọc file từ đĩa. Điển hình khi có lệnh tiếp tục đọc phần tiếp theo của cuối file.



101 Disk write error Reported when the disk is full, and you’re trying to write to it.

Lỗi ghi đĩa. Lỗi được báo khi đĩa đã đầy và có lệnh ghi vào đĩa đó.



102 File not assigned This is reported by Reset, Rewrite, Append, Rename and Erase, if you call them with an unassigned file as a parameter.

File chưa được khai báo. Lỗi được báo khi lệnh Reset, Rewrite, Append, Rename và Erase được gọi với 1 biến chưa được khai báo.



103 File not open Reported by the following functions : Close, Read, Write, Seek, EOf, FilePos, FileSize, Flush, BlockRead, and BlockWrite if the file is not open.

File chưa được mở. Lỗi được báo khi các lệnh sau được gọi: Close, Read, Write, Seek, Eof, FilePos, FileSize, Flush, BlockRead, và BlockWrite nếu chưa mở file.



104 File not open for input Reported by Read, BlockRead, Eof, Eoln, SeekEof or SeekEoln if the file is not opened with Reset.

File chưa mở để đọc. Lỗi được báo khi các lệnh sau được gọi: Read, BlockRead, Eof, Eoln, SeekEof hoặc SeekEoln nếu file chưa được mở bằng lệnh Reset.



105 File not open for output Reported by write if a text file isn’t opened with Rewrite.

File chưa được mở để ghi. Lỗi được báo khi 1 biến kiểu Text chưa được mở bằng lệnh Rewrite.



106 Invalid numeric format Reported when a non-numeric value is read from a text file, when a numeric value was expected.

Sai kiểu số. Lỗi được báo khi 1 giá trị ký tự được đọc từ file kiểu Text, khi mà biến đọc vào là 1 biến số.



150 Disk is write-protected (Critical error)

Đĩa ở chế độ Ngăn cản ghi (Write-Protected)



151 Bad drive request struct length (Critical error)



152 Drive not ready (Critical error)

Ổ đĩa chưa chuẩn bị.



154 CRC error in data (Critical error)

Lỗi kiểm tra độ dư vòng (Cyclic redundancy check – CRC) trong dữ liệu.



156 Disk seek error (Critical error)

Tìm kiếm ổ đĩa không được.



157 Unknown media type (Critical error)

Định dạng phương tiện truyền thông không chấp nhận.



158 Sector Not Found (Critical error)

Cung từ trên ổ đĩa không tìm thấy.



159 Printer out of paper (Critical error)

Máy in không có giấy.



160 Device write fault (Critical error)

Thiết bị ghi lỗi.



161 Device read fault (Critical error)

Thiết bị đọc lỗi.



162 Hardware failure (Critical error)

Lỗi ổ cứng.

(Lỗi 150-162 là lỗi phần cứng)



200 Division by zero The application attempted to divide a number by zero.

Lỗi chia cho 0. Chương trình đang cố chia 1 số cho 0 (Kinh nghiệm là lỗi này xảy ra khi cố gọi Unit Crt khi thiếu thư viện này)



201 Range check error If you compiled your program with range checking on, then you can get this error in the following cases:

Lỗi kiểm tra vùng xãy ra. Nếu trình biên dịch có chế độ Kiểm tra vùng (Range-Checking) được mở, thì có thể xãy ra các lỗi sau:

1. An array was accessed with an index outside its declared range.

Có lệnh truy cập vào 1 vùng nằm ngoài khai báo 1 Array.

2. Trying to assign a value to a variable outside its range (for instance an enumerated type).

Có lệnh gán giá trị vượt quá giới hạn giá trị của biến.



202 Stack overflow error The stack has grown beyond its maximum size (in which case the size of local variables should be reduced to avoid this error), or the stack has become corrupt. This error is only reported when stack checking is enabled.

 Tràn hàng đợi (Stack). Chồng đợi đã vượt qua giới hạn (có thể giảm dung lượng hoặc không xài biến cục bộ để giảm thiểu lỗi này) hoặc chồng đợi có lỗi. Lỗi này chỉ được báo khi trình biên dịch có chế độ Kiểm tra Chồng đợi (Stack Checking) được mở.



203 Heap overflow error The heap has grown beyond its boundaries. This is caused when trying to allocate memory exlicitly with New, GetMem or ReallocMem, or when a class or object instance is created and no memory is left. Please note that, by default, Free Pascal provides a growing heap, i.e. the heap will try to allocate more memory if needed. However, if the heap has reached the maximum size allowed by the operating system or hardware, then you will get this error.

Tràn Heap. Heap đã đạt tới giới hạn. Lỗi xãy ra khi có lệnh chỉ định Memory Exlicitly (?) với lệnh New, GetMen hoặc ReallocMem, hoặc khi 1 lớp đối tượng được tạo ra và tràn bộ nhớ. Lưu ý: FreePascal cung cấp 1 Heap tự động: Ví dụ nếu Heap đã đạt giá trị cực đại, FreePascal sẽ chỉ định thêm vùng nhớ nếu cần. Nhưng nếu Heap đã đạt giá trị cực đại cho phép bởi hệ điều hành hoặc phần cứng thì lỗi sẽ xảy ra.



204 Invalid pointer operation This you will get if you call Dispose or Freemem with an invalid pointer (notably, Nil)

Lỗi phép toán Con trỏ. Lỗi xảy ra khi có lệnh Dispose hoặc FreeMem một con trỏ Nil hoặc không xác định.



205 Floating point overflow You are trying to use or produce too large real numbers.

Lỗi tràn số. Lỗi xãy ra khi có lệnh sử dụng hoặc sinh ra 1 số thực quá lớn.



206 Floating point underflow You are trying to use or produce too small real numbers.

Lỗi tràn số. Lỗi xãy ra khi có lệnh sử dụng hoặc sinh ra 1 số thực quá nhỏ.



207 Invalid floating point operation Can occur if you try to calculate the square root or logarithm of a negative number.

Lỗi số không xác định. Lỗi xảy ra khi có phép tính toán một căn thức hoặc hàm Log của 1 số âm.



210 Object not initialized When compiled with range checking on, a program will report this error if you call a virtual method without having called istr constructor.

Đối tượng không có giá trị ban đầu. Khi biên dịch với trình có Kiểm tra Vùng (Range-Checking) được mở, chương trình sẽ báo lỗi này nếu có lệnh gọi 1 phương pháp ảo (?) không có đối tượng xây dựng (?)



211 Call to abstract method Your program tried to execute an abstract virtual method. Abstract methods should be overridden, and the overriding method should be called.

Trừu tượng hoá phương pháp (?) Chương trình đang có thi hành 1 phương pháp ảo trừu tượng (?). Phương pháp trừu tượng nên được ghi đè, và phương pháp đã được ghi đè nên được gọi thay.



212 Stream registration error This occurs when an invalid type is registered in the objects unit.

Lỗi đăng ký luồng. Lỗi xảy ra khi 1 kiểu biến không hợp lệ đăng ký trên thư viện Object.



213 Collection index out of range You are trying to access a collection item with an invalid index(objects unit).

Thu thập danh mục ngoài vùng. Lỗi xãy ra khi có lệnh truy cập những thông tin thu thập được với danh mục không xác định (lỗi trong thư viện Object)



214 Collection overflow error The collection has reached its maximal size, and you are trying to add another element (objects unit).

Thông tin thu thập tràn bộ nhớ. Những thông tin thu thập được đã đạt giới hạn lưu trữ, và có lệnh thêm vào 1 thông tin (lỗi trong thư viện Object)



215 Arithmetic overflow error This error is reported when the result of an arithmetic operation is outside of its supported range. Contrary to Turbo Pascal, this error is only reported for 32-bit or 64-bit arithmetic overflows. This is due to the fact that everything is converted to 32-bit or 64-bit before doing the actual arithmetic operation.

Lỗi tràn số học. Lỗi xảy ra khi kết quả của 1 phép toán số học nằm ngoài giới hạn hỗ trợ của biến. Trái với Turbo Pascal, lỗi này chỉ báo cho các phép toán số học trên hệ 32-bit hoặc 64-bit. Nguyên nhân là các dữ liệu đều được dịch sang thông tin 32-bit hoặc 64-bit trước khi thực hiện các thao tác tính toán số học.



216 General Protection fault The application tried to access invalid memory space. This can be caused by several problems:

Lỗi bảo vệ chung (?) Ứng dụng đã truy cập vào vùng bộ nhớ không hợp lệ. Lỗi xãy ra khi:

1. Deferencing a nil pointer

Truy cập vào 1 con trỏ Nil.

2. Trying to access memory which is out of bounds (for example, calling move with an invalid length).

Truy cập vào vùng nhớ nằm ngoài giới hạn.


(nguồn: sưu tầm từ Internet)
Views: 107812 | Added by: Angle_Bup | Rating: 4.3/18
Total comments: 231 2 »
23 KevinSpoks  
0
Hello dear friend, I would like to offer placement of your link (or links) on different platforms of the internet such as: forums, blogs, comments and much more. . .

Increase your Visibility Boost Your Seo Rank - Get Organic Traffic From Google. Ranking in Google isn’t hard. All you need is a healthy number of backlinks from referring domains that have authority and trust in Google’s eyes.

This Backlinks Service Benefits:

1. Easily get Google rankings

2. Get a lot of traffic from Google

3. You can earn from the website in different ways

4. Increase Domain Authority (DA)

Quality guaranteed !

PRICE - 10$

WebSite - http://traffic-for-your.site/

22 whatever  
0
nếu bị lỗi exitcode 1 thì các bạn nên xem lại tên file chương trình, nếu nó k hợp lệ thì sẽ có lỗi này, lỗi này thường chỉ do bạn tự tạo file theo ý muốn chứ đề thi là có sẵn cái tên hợp lệ rồi. có thể tên file quá dài hoặc có chứa các kí tự k cho phép, khi mình bị lỗi thì tên file của mình có "(", ")", "-", xoá đi là xong cái này tìm mất mấy tiếng mới ra :(((((((((((

21 ahihi  
0
fuck

20 d_hoang  
0
làm sao để khắc phục lỗi 201?

19 huyNH  
0
chay f7 roi coi no sai cho nao

18 Trương Thái Nguyên  
0
Thầy ơi e bị lỗi 216 thầy giúp e với :((
e gõ y chang trong bt nhưng bị lỗi
Uses Crt,Graph;
Var Gd,Gm,x,y,v:Integer;
Pa,Pb:Pointer;
Size:Word;
C:Char;
Begin
Gd:=Detect;
InitGraph(Gd,Gm,'');
If GraphResult <> GrOk Then Halt;
Size:=ImageSize(0,0,20,20);
GetMem(Pb,Size);
GetImage(0,0,20,20,Pa^);
ClearDevice;
x:=300;y:=200;v:=10;c:=#77;
Repeat
PutImage(x,y,Pa^,NormalPut);
Repeat Until KeyPressed;
c:=Readkey;If c=#0 then c:=Readkey;
PutImage(x,y,Pb^,NormalPut);
Case c Of
#72:Dec(y);
#75:Dec(x);
#77:Inc(x);
#80:Inc(y);
End;

If x>600 then x:=0;
If x<0 then x:=600;
If y>440 then y:=0;
If y<0 then y:=440;
Until (c=#27)or(c=#13);
CloseGraph;
End.

17 khang  
0
húuuuu

15 Spots  
-2
hi vong hom nay thay ko cho bai ve nha

13 punky  
-2
ủa thầy ơi, làm xong có cần gửi bài tìm UCLN về cho thầy ko vậy dry

14 Angle_Bup  
2
không cần gửi nhé em! làm rồi mai ta cùng sửa chung.

11 ngkhtien  
-1
thầy ơi bắt buộc phải dùng ct con hả thầy faint

12 Angle_Bup  
0
sure!

1-10 11-15
Name *:
Email *:
Code *:
Login form
Chat Box
Search
Calendar
«  August 2011  »
SuMoTuWeThFrSa
 123456
78910111213
14151617181920
21222324252627
28293031
Entries archive
Site friends
  • VNOI
  • THPT Chuyên Lương Thế Vinh
  • Website builderuCoz!-->
    Copyright Hoàng Anh © 2024