Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Delphi Run-Time Error Codes
13 comments. Current rating: (2 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:
|
1 | Invalid function number | |
2 | File not found | |
3 | Path not found | |
4 | Too many open files | |
5 | File access denied | |
6 | Invalid file handle | |
12 | Invalid file access code | |
15 | Invalid drive number | |
16 | Cannot remove current directory | |
17 | Cannot rename across drives | |
100 | Disk read error | |
101 | Disk write error | |
102 | File not assigned | |
103 | File not open | |
104 | File not open for input | |
105 | File not open for output | |
106 | Invalid numeric format | |
200 | Division by zero | |
201 | Range check error | |
202 | Stack overflow error | |
203 | Heap overflow error | |
204 | Invalid pointer operation | |
205 | Floating point overflow | |
206 | Floating point underflow | |
207 | Invalid floating point operation | |
210 | Object not initialized | |
211 | Call to abstract method | |
212 | Stream registration error | |
213 | Collection index out of range | |
214 | Collection overflow error | |
215 | Arithmetic overflow error | |
216 | General protection fault |
Comments:
|
|
|
|
@prezemo_21:
- image1.width could it be 0?
- the argument for arccos.. did you check it is in the valid range? (what is i?)
|
|
|
|
|
Try seperating your code out a bit more to narrow down what the source of the problem is. i.e
aValue := Image1.Height div 2;
aValue := 100*cos(ArcCos(i*2*pi/Image1.Width)) ;
aValue := Round(aValue);
I've just found a problem with RoundTo and that if you insert a large number (RoundTo(xxxxxxxxx,-10) it will give a invalid floating point operation exception, if you follow i through it turns out that gives this exception on Round as its trying to round a value that is greater then the max Int64 type;
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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);
|
|
|
|
|
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!!!
|
|
|
|
|
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.
|
|
|
|
| 'I am getting run time error 216 when i closed my runtime application what i have to do' |
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
hi
i want to ask you about how to deal with 'floating point overflow' error.
thx
|
|
|
|
|
|
|