This site is temporarily down. Please come back. Delphi Run-Time Error Codes
DelphiFAQ Home Search:

Delphi Run-Time Error Codes

 

comments24 comments. Current rating: 4 stars (6 votes). Leave comments and/ or rate it.

Delphi's online help documentation seems to miss the run-time error codes. I usually looked them up in my old Borland Pascal for Windows help file - now they are here for fast access:

1Invalid function number
2File not found
3Path not found
4Too many open files
5File access denied
6Invalid file handle
12Invalid file access code
15Invalid drive number
16Cannot remove current directory
17Cannot rename across drives
100Disk read error
101Disk write error
102File not assigned
103File not open
104File not open for input
105File not open for output
106Invalid numeric format
200Division by zero
201Range check error
202Stack overflow error
203Heap overflow error
204Invalid pointer operation
205Floating point overflow
206Floating point underflow
207Invalid floating point operation
210Object not initialized
211Call to abstract method
212Stream registration error
213Collection index out of range
214Collection overflow error
215Arithmetic overflow error
216General protection fault

Content-type: text/html

Comments:

You are on page 1 of 2, other pages: [1] 2
2007-05-11, 10:18:10
echman4u@yahoo.com  
program frequency (input, output);
{\ THIS CODE IS MEANT TO COUNT THE FREQUENCY OF EACH CHARACTER IN A FILE'S DOCUMENT\}
uses crt;
var
char_ascii : array [1..256] of integer;
file_name : text;
i : integer;
ch : char;
begin
clrscr;
i:= 0;
char_ascii [256] := 0;
assign ( file_name, 'f:\values1.txt');
reset (file_name);
while not eof (file_name) do
begin
readln (ch);
char_ascii [ord(ch)] := char_ascii [ord(ch)] + 1;
close (file_name);
end;
for i:= 1 to 256 do
writeln (ch,',' , i , ',' , char_ascii [ord(i)]);
readln;
end.


I M PISSD. THE COMPUTER KEEPS TELLING ME THAT THE FILE IS NOT OPEN FOR INPUT IF THERE'S SOMETHING IN THE FILE. BUT IF THERES NOTHING IN IT, THE PROGRAM WORKS
2007-05-18, 01:20:47
anonymous from India  
Hi i am getting a Error I/O Error 53 while reading a file from a Network Path.Can anybody help y i am getting such a error
2007-05-18, 01:22:24
anonymous from India  
Hi i am getting a Error I/O Error 53 while reading a file from a Network Path.Can anybody help y i am getting such a error
2008-04-20, 09:52:46
anonymous from Bulgaria  
echman4u

Use readln(file_name, ch) and not just readln(ch) cause you are trying to read from the console that way!

As for invalid floating point I guess it happens when you're using too small real numbers and try to round them or do a Sqrt(-1);
2008-04-24, 19:27:41
anonymous from Australia  
MAJOR problem
Ive got a problem with saving my program
everytime i click on the save button it comes up with 'Stream write error'
I really need help on this its for an assignment for school and its already overdue
someone plzzzzz help!!!
2008-05-29, 12:00:41
[hidden] from United States  
rating
The stream write error is either (1) invalid file name structure, (2) destination is full or what you are saving is larger than diskspace available.
2008-10-19, 23:38:31
[hidden] from India  
rating
'I am getting run time error 216 when i closed my runtime application what i have to do'
2009-01-20, 06:18:53
Jelte from Hazerswoude-dorp, Netherlands  

assign ( file_name, 'f:\values1.txt');
reset (file_name);
while not eof (file_name) do
begin
readln (ch);
char_ascii [ord(ch)] := char_ascii [ord(ch)] + 1;
close (file_name);
end;


And nobody sees this all the time?!
This obvious, but still hidden for most ppl!

Anyway,
1. change 'readln (ch);' to 'readln (file_name, ch); '
2. move the 'close (file_name);' outside the while-loop
3. bad variable naming; 'file_name' is probably a File or TextFile type
instead of the actual name
2009-02-08, 20:03:46
[hidden] from Indonesia  
hey guys,

I have the problem with database file. I want to know, how make a function to know file database still access by another programs. And the result on type boolean. Ok, gays thaks a lot.
2009-04-19, 11:10:15
soul_blade_sw@yahoo.com from Sidoarjo, Indonesia  
hi
i want to ask you about how to deal with 'floating point overflow' error.
thx
2009-05-23, 12:55:48
anonymous from China  
Thank you very much!
http://www.mofun.cc
2010-04-15, 07:00:59
filo from Czech Republic  
rating
Thank you, very useful error list !
2010-04-26, 18:20:07
anonymous from Arlington Heights, United States  
rating
thank you
You are on page 1 of 2, other pages: [1] 2

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: