0 / 0 / 0 Регистрация: 08.07.2009 Сообщений: 4 |
|
1 |
|
08.07.2009, 23:42. Показов 14580. Ответов 7
Начал изучять Турбо Паскаль,столкнулся с такой проблемой:написал прогу,откомпилировал,хочю прогнать ее и видает ошибку ‘Runtime error 105 at 0001:0032’.Работаю на Turbo Pascal for windows 7.1,ОС WINXP SP/3.Спасиба за ответи!
__________________
0 |
247 / 205 / 26 Регистрация: 03.02.2009 Сообщений: 785 |
|
08.07.2009, 23:58 |
2 |
а программа какая?
0 |
ВАНЕК 0 / 0 / 0 Регистрация: 08.07.2009 Сообщений: 4 |
||||
09.07.2009, 00:00 [ТС] |
3 |
|||
Такое на многих програмах,вот одна из них:
0 |
247 / 205 / 26 Регистрация: 03.02.2009 Сообщений: 785 |
|
09.07.2009, 00:07 |
4 |
а что Вы вводите по запросу программы? Добавлено через 3 минуты 38 секунд EZ>> Пpи запyске пpоги в BP7 (bpw.exe), выдается вот такая ошибка: Uses Windows; begin Тебе надо либо добавить WinCrt для старых версий Pascal for Windows либо Всего доброго, Добавлено через 31 секунду
1 |
0 / 0 / 0 Регистрация: 08.07.2009 Сообщений: 4 |
|
09.07.2009, 00:12 [ТС] |
5 |
Жму ENTER И ВСЕ,вирубается. Добавлено через 5 минут 21 секунду
0 |
o-user 247 / 205 / 26 Регистрация: 03.02.2009 Сообщений: 785 |
||||
09.07.2009, 00:13 |
6 |
|||
Попробуйте:
1 |
0 / 0 / 0 Регистрация: 08.07.2009 Сообщений: 4 |
|
09.07.2009, 00:20 [ТС] |
7 |
Весьма признателен!!!Попробивал роботает нормально.СПАСИБА!!!!!!!!
0 |
247 / 205 / 26 Регистрация: 03.02.2009 Сообщений: 785 |
|
09.07.2009, 00:51 |
8 |
Пожалуйста! )))
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
09.07.2009, 00:51 |
8 |
Pascal runtime error 105
Applications generated by Free Pascal might generate run-time errors 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. 1 Invalid function number An invalid operating system call was attempted. 2 File not found Reported when trying to erase, rename or open a non-existent file. 3 Path not found Reported by the directory handling routines when a path does not exist or is invalid. Also reported when trying to access a non-existent file. 4 Too many open files The maximum number of files currently opened 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. 5 File access denied Permission to access the file is denied. This error might be caused by one of several reasons:
- Trying to open for writing a file which is read-only, or which is actually a directory.
- File is currently locked or used by another process.
- Trying to create a new file, or directory while a file or directory of the same name already exists.
- Trying to read from a file which was opened in write-only mode.
- Trying to write from a file which was opened in read-only mode.
- Trying to remove a directory or file while it is not possible.
- No permission to access the file or directory.
6 Invalid file handle If this happens, the file variable you are using is trashed; it indicates that your memory is corrupted. 12 Invalid file access code Reported when a reset or rewrite is called with an invalid FileMode value. 15 Invalid drive number The number given to the Getdir or ChDir function specifies a non-existent disk. 16 Cannot remove current directory Reported when trying to remove the currently active directory. 17 Cannot rename across drives You cannot rename a file such that it would end up on another disk or partition. 100 Disk read error An error occurred when reading from disk. Typically happens when you try to read past the end of a file. 101 Disk write error Reported when the disk is full, and you’re trying to write to it. 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. 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. 104 File not open for input Reported by Read, BlockRead, Eof, Eoln, SeekEof or SeekEoln if the file is not opened with Reset . 105 File not open for output Reported by write if a text file isn’t opened with Rewrite . 106 Invalid numeric format Reported when a non-numeric value is read from a text file, and a numeric value was expected. 107 Invalid enumeration Reported when a text representation of an enumerated constant cannot be created in a call to str or write(ln). 150 Disk is write-protected (Critical error) 151 Bad drive request struct length (Critical error) 152 Drive not ready (Critical error) 154 CRC error in data (Critical error) 156 Disk seek error (Critical error) 157 Unknown media type (Critical error) 158 Sector Not Found (Critical error) 159 Printer out of paper (Critical error) 160 Device write fault (Critical error) 161 Device read fault (Critical error) 162 Hardware failure (Critical error) 200 Division by zero The application attempted to divide a number by zero. 201 Range check error If you compiled your program with range checking on, then you can get this error in the following cases: 1. An array was accessed with an index outside its declared range. 2. Trying to assign a value to a variable outside its range (for instance an enumerated type). 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. 203 Heap overflow error The heap has grown beyond its boundaries. This is caused when trying to allocate memory explicitly 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. 204 Invalid pointer operation You will get this in several cases:
- if you call Dispose or Freemem with an invalid pointer
- in case New or GetMem is called, and there is no more memory available. The behavior in this case depends on the setting of ReturnNilIfGrowHeapFails . If it is True , then Nil is returned. if False , then runerror 204 is raised.
205 Floating point overflow You are trying to use or produce real numbers that are too large. 206 Floating point underflow You are trying to use or produce real numbers that are too small. 207 Invalid floating point operation Can occur if you try to calculate the square root or logarithm of a negative number. 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 its object’s constructor. 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. 212 Stream registration error This occurs when an invalid type is registered in the objects unit. 213 Collection index out of range You are trying to access a collection item with an invalid index ( objects unit). 214 Collection overflow error The collection has reached its maximal size, and you are trying to add another element ( objects unit). 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. 216 General Protection fault The application tried to access invalid memory space. This can be caused by several problems: 1. Dereferencing a nil pointer. 2. Trying to access memory which is out of bounds (for example, calling move with an invalid length). 217 Unhandled exception occurred An exception occurred, and there was no exception handler present. The sysutils unit installs a default exception handler which catches all exceptions and exits gracefully. 218 Invalid value specified Error 218 occurs when an invalid value was specified to a system call, for instance when specifying a negative value to a seek() call. 219 Invalid typecast
Thrown when an invalid typecast is attempted on a class using the as operator. This error is also thrown when an object or class is typecast to an invalid class or object and a virtual method of that class or object is called. This last error is only detected if the -CR compiler option is used. 222 Variant dispatch error No dispatch method to call from variant. 223 Variant array create The variant array creation failed. Usually when there is not enough memory. 224 Variant is not an array This error occurs when a variant array operation is attempted on a variant which is not an array. 225 Var Array Bounds check error This error occurs when a variant array index is out of bounds. 227 Assertion failed error An assertion failed, and no AssertErrorProc procedural variable was installed. 229 Safecall error check This error occurs is a safecall check fails, and no handler routine is available. 231 Exception stack corrupted This error occurs when the exception object is retrieved and none is available. 232 Threads not supported Thread management relies on a separate driver on some operating systems (notably, Unixes). The unit with this driver needs to be specified on the uses clause of the program, preferably as the first unit ( cthreads on unix).
Источник
Pascal runtime error 105
Профиль
Группа: Участник
Сообщений: 41
Регистрация: 26.1.2009
Где: Москва
Репутация: нет
Всего: нет
Bobrina |
|
||
Код |
Program Nex; var n : Integer; ch : char; begin Write (‘,n=’); ReadLn(n); if (n>=0) and (n |
Компилится, при запуске пишет Runtime Error 105 at 0001:002B
Помогите разобратся.
Hang |
|
||
Шустрый Профиль Репутация: 1 |
|||
|
Профиль
Группа: Участник
Сообщений: 41
Регистрация: 26.1.2009
Где: Москва
Репутация: нет
Всего: нет
Bobrina |
|
||
Цитата |
у меня твой код ошибок не выдает |
Профиль
Группа: Участник
Сообщений: 41
Регистрация: 26.1.2009
Где: Москва
Репутация: нет
Всего: нет
Bobrina |
|
||
|
Hang |
|
||
Шустрый Профиль Репутация: 1
ВНИМАНИЕ! Прежде чем создавать темы, или писать сообщения в данный раздел, ознакомьтесь, пожалуйста, с Правилами форума и конкретно этого раздела.
Более подробно с правилами данного раздела Вы можете ознакомится в этой теме. Если Вам помогли и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, Poseidon, Rodman Источник Adblock |
|
|
|
RunTime Error 105
, (разделено)
- Подписаться на тему
- Сообщить другу
- Скачать/распечатать тему
|
|
Newbie Рейтинг (т): нет |
Люди хелпните, мне 14 лет токо начал заниматься програмированием, вот увидел пользу паскаля… када пишу в поиске адрес ошибки мне выделяет строку хотя там вроде ошибок нету блин!!!! Эта тема была разделена из темы «ЧАВО+» |
KiRiK |
|
Senior Member Рейтинг (т): 25 |
Хм.. что это у тебя за IDE такая? |
Булат Шакиров |
|
Работаешь в BPW? А Uses WinCRT Кто будет ставить? |
AVA12 |
|
Цитата Run-time error 105: File not open for output This error occurs if you try to use standard input and output functions like Readln and Writeln without the Uses WinCRT; statement. To correct this error, add Uses WinCRT; to your program. © Borland Pascal Help (bpw.hlp). |
zJIoy4eJI |
|
Newbie Рейтинг (т): нет |
А по подробнее, как код будет выглядеть??? |
Булат Шакиров |
|
zJIoy4eJI Uses WinCrt; {Твой код здесь} |
zJIoy4eJI |
|
Newbie Рейтинг (т): нет |
То есть Цитата
Uses WinCrt; да? и это при аждом использовании оператора Writeln И readln ??? Добавлено 19.09.06, 12:17 Цитата program E1; Добавлено 19.09.06, 12:31 |
volvo877 |
|
Moderator Рейтинг (т): 878 |
zJIoy4eJI, program E1; Uses WinCrt; var a,d,c: real; begin writeln(‘Введите длины трех сторон треугольника’); readln(a,d,c); write (‘Треугольник со сторонами ‘, a,d,c); if(a + d > c) and (d + c > a) and (c + a > d) then writeln (‘сушествует’) else writeln (‘не сушествует’) end.
все-таки, иначе компилятор тебя не поймет |
zJIoy4eJI |
|
Newbie Рейтинг (т): нет |
вот вот я так и сделал Добавлено 19.09.06, 12:53 Добавлено 19.09.06, 12:58 |
e-moe |
|
Цитата zJIoy4eJI @ 19.09.06, 12:49 знак делить это / ???
да конечно |
zJIoy4eJI |
|
Newbie Рейтинг (т): нет |
Цитата e-moe @ 19.09.06, 13:32 Цитата zJIoy4eJI @ 19.09.06, 12:49 знак делить это / ???
да конечно А теперь обьясни тупому 9-и класснику что озночает целочислительское деление?? |
Anykey |
|
Full Member Рейтинг (т): 26 |
Цитата zJIoy4eJI @ 19.09.06, 13:41 А теперь обьясни тупому 9-и класснику что озночает целочислительское деление?? Выдает только целую часть от деления |
volvo877 |
|
Moderator Рейтинг (т): 878 |
Цитата zJIoy4eJI @ 19.09.06, 13:41 что озночает целочислительское деление?? Деление, когда делимое, делитель и частное — целые числа… Var i, j: integer; begin i := 7; j := i / 2; { <— Ошибка } j := i div 2; { <— Правильно} end. |
Alex_Speaker |
|
zJIoy4eJI, |
0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
0 пользователей:
- Предыдущая тема
- Pascal
- Следующая тема
[ Script execution time: 0,0629 ] [ 15 queries used ] [ Generated: 10.02.23, 01:55 GMT ]
Автор: -katrin- 14.04.2005 14:48
здравствуйте,
написала прогу на Borland Pascal (решение маленькой задачки)
проблема1:
упорно не отображаются русские буквы (меняла настройку в реестре, установила keyrus, создала bat-файл для запуска кейруса и потом паскаля — не помогает!!!)
проблема2:
после написания и успешной компиляции при запуске выдает сообщение об ошибке 105 (я так поняла — для writeln, пч другого ничего нет подозрительного)
для файла, папки и диска НЕ стоит галочка «только чтение»!
как тут быть? что исправить?
помогите, пожалуйста, по возможности решить обе проблемы, буду очень благодарна
Автор: volvo 14.04.2005 14:53
-katrin-,
ошибка в 17 строке…
Здесь что, по-Вашему, телепаты? Код в студию!
Кстати, Run-Time Error #105 это «Файл не открыт для вывода». Rewrite присутствует?
Насчет первого вопроса — к тому, что есть в http://forum.pascal.net.ru/index.php?showtopic=779&view=findpost&p=8215 добавить нечего…
Автор: -katrin- 14.04.2005 15:01
задача:
для целого 1<=k<=99 напечатать фразу: «Мне К лет » (с возможными изменениями последнего слова).
текст
Код
program myAge;
var
k: Integer;
s,st: string;
begin
write(‘Vvedite vash vozrast:’);
read(k);
while (k<1) or (k>99) do
begin
writeln(‘Oshibka! Nuzhno vvesti chislo ot 1 do 99!’);
writeln(‘Vvedite vash vozrast:’);
read(k);
end;
case k of
1 or 21 or 31 or 41 or 51 or 61 or 71 or 81 or 91: s:=’ god’;
2 or 3 or 4 or 22 or 23 or 24 or 32 or 33 or 34 or 42 or 43 or 44 or 52 or 53 or 54 or 62 or 63 or 64 or 72 or 73 or 74 or 82
or 83 or 84 or 92 or 93 or 94: s:=’ goda’;
else
s:=’ let’;
end;
Str(k, st);
st:=’Mne ‘ + st + s;
writeln(st);
end.
Автор: volvo 14.04.2005 15:09
-katrin-, во-первых, Case оформлен неверно. Вот правильный вариант:
case k of
1, 21, 31, 41, 51, 61, 71, 81, 91:
s:=' god';2..4,
22..24, 32..34, 42..44,
52..54, 62..64, 72..74,
82..84, 92..94:
s:=' goda';else
s:=' let';
end;
Ну а во вторых, этот код компилируется и работает как под BP так и под Turbo Pascal… Что-то непонятное у Вас творится…
P.S. А зачем вот это: Str(k, st); ?
Можно же просто вывести:
writeln('Mne ', k, s);
Автор: -katrin- 14.04.2005 15:22
volvo
спасибо! но все равно ошибку выдает
Автор: volvo 14.04.2005 15:32
А поточнее? На каком именно Write выдает ошибку? На самом первом? Или на каком-то из последующих? Возраст ввести дает?
Автор: Guest 14.04.2005 15:33
Runtime error 105 at 0001:0086
Автор: volvo 14.04.2005 15:38
Это мне НИЧЕГО не скажет… Это на Вашем компьютере есть такой адрес. У меня его нет. Локализуйте ошибку. Лучше всего — после КАЖДОЙ строки поставить Writeln(‘stroka #1’), и т.д. и посмотреть СКОЛЬКО он выводит строк. Адреса — понятие ОЧЕНЬ ненадежное…
Автор: -katrin- 14.04.2005 15:49
он ничего не пишет, после запуска сразу ошибку выдает
Автор: Guest 14.04.2005 16:16
Может библиотеку надо подключить, просто в вашем коде я этого не видел
Автор: volvo 14.04.2005 16:36
Интересно какую? Все функции используемые в программе входят в состав System.tpu, который подключается автоматически. Да, кроме этого если бы не хватало библиотеки, программа не прошла бы компиляцию, а она ее проходит.
Единственное, что приходит на ум сделать — это попробовать использовать:
Program myAge(input, output);
...
writeln(output, 'что-то');
readln(input, 'что-то еще');
, то есть воспользоваться стандартными каналами ввода-вывода. Интересно, сработает ли это?
Автор: -katrin- 15.04.2005 5:57
все та же runtime error 105
видимо паскаль косо поставился …
Автор: volvo 15.04.2005 6:01
Попробуй установить Turbo Pascal, с ним не должно быть проблем… Программа — точно рабочая, я ее уже в каких компиляторах только не гонял…
Автор: -katrin- 15.04.2005 9:01
volvo
спасибо за помощь! :flowers:
попробую по-новой установить, если не поможет, турбопаскаль поищу