Delphi I/o Error 32 Rewrite
Contents |
Rewrite(MyOutFile); Now it gives me an "I/O error 32" (with the file existing or not). What is error 32? Where does Delphi
I/o Error 32 Game Maker
hide its error code deciphering? What could be wrong? Thanks Danny Schoemann Dan...@dorotree.com einouterror Team Delphi Developer Fri, 19 Apr 2002 03:00:00 GMT Re:What is I/O error 32? In message <7vkfh5$4...@forums.borland.com>, Danny Schoemann stated:
Delphi I/o Error 103
Quote> Now it gives me an "I/O error 32" (with the file existing or not). > What is error 32? 32 is a standard Windows error code indicating a sharing violation. You'll find exception einouterror in module file access denied the Windows error codes declared in Windows.Pas in the form ERROR_... -- Regards Ralph (TeamB) -- Danny Schoeman Delphi Developer Sun, 21 Apr 2002 03:00:00 GMT Re:What is I/O error 32? Thanks Ralph. Your pointers helped us fix the problem. For the record, here's the story: After digging around the Windows.pas files and all other .pas files containing the word "sharing" I discovered that error code delphi assignfile 32 is a generic code for any "undefined" I/O error. ( To quote commdlg.pas: "Note: Undefined return values map to OFN_SHAREWARN, but are reserved for future use.") By stepping and guessing we traced it to a line in a previous function "RmDir(MyDirName)" that failed. Since we were not trapping IO errors with IOResult then all subsequent IO failed (as per help file - - "If an I/O error occurs and I/O-checking is off, all subsequent I/O operations are ignored until a call is made to IOResult. Calling IOResult clears the internal error flag".) Only RmDir causes this and not RemoveDir. So we are now using RemoveDir. Most of the time (all the time?) RemoveDir (and RmDir) fail. Not serious but peculiar. Thanks again - Danny Schoemann http://www.dorotree.com QuoteRalph Friedman (TeamB) wrote in message ... >In message <7vkfh5$4...@forums.borland.com>, Danny Schoemann stated: >> Now it gives me an "I/O error 32" (with the file existing or not). >> What is error 32? >32 is a standard Windows error code indicating a sharing violation. >You'll find the Windows error codes declared in Windows.Pas in the form >ERROR_... >-- >Regards >Ralph (TeamB) >-- Other Threads 1. 32 bit Pascal version
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > I/O error 32 when manipulating files Want to Advertise Here? Solved I/O error 32 when manipulating files Posted on 2002-08-28 Delphi 1 Verified Solution 5 Comments 3,113 Views Last Modified: 2010-04-04 hi, when I did the coding to manipulate the file, http://www.delphigroups.info/2/a7/334575.html i also met I/O error, the problem occurs when hitting the following command: Rewrite(tempfile); I am using windows 2000 and Delphi 6.0. Please tell me what happens and how to solve this problem!!! Thanks 0 Question by:cdbdelphi Facebook Twitter LinkedIn Google Best Solution bymaio The error is a sharing violation, which can mean that your or another program has this files opened. For a
Тесты Блоги Сообщество Поиск Ссылки сообщества Социальные группы Поиск Google по форуму Поиск Yandex по форуму Поиск по форуму Расширенный поиск Тесты Список тестов К странице... @diagon Higher 1920 / 1186 / 49 Регистрация: 02.05.2010 Сообщений: 2,925 http://www.cyberforum.ru/delphi-beginners/thread244731.html Записей в блоге: 2 18.02.2011, 17:36 I/O error 32 #1 Привожу кусок кода... Delphi1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 if q then begin i:=0; v:=false; assignfile(f,aDir+'\'+strname); //связываю f c именем файла reset(f); while not eof(f) do begin readln(f,s); str:=str+s; end; closefile(f); i:=ansiPos(Ansiuppercase(w),ansiuppercase(str)); //ищу строку в файле if i>=1 then v:=true; //если строка была найдена то v:=true; end; i/o error end; if (ExtIs)and(NameIs)and(TimeIs)and(SizeIs)and(v) then begin //при выполнении всех условий добавляю запись в таблицу... table.append; Table.Fields.FieldByName('Path').Value:=aDir; end;По идее этот ерор означает, что этот файл уже использует другое приложение... Но что в данном случае не так ума не приложу Similar Эксперт 41792 / 34177 / 6122 Регистрация: 12.04.2006 Сообщений: 57,940 18.02.2011, 17:36 I/O error 32 Посмотрите здесь: I/O error 131 Delphi Error 105 Delphi Delphi I/O error 6Delphi I/O errorошибка Socket Error delphi i/o error #11001 или socket error #10051 Delphi После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума. @ArtGrek 425 / 53 / 1 Регистрация: 31.12.2010 Сообщений: 191 18.02.2011, 17:52 I/O error 32 #2 Delphi1 2 3 4 assignfile(f,aDir+'\'+strname); //связываю f c именем файла reset(f); //а где assignfile, вообше что ето table table.append; @diagon Higher 1920 / 1186 / 49 Регистрация: 02.05.2010 Сообщений: 2,925 Записей в блоге: 2 18.02.2011, 18:03 [ТС] I/O error 32 #3 Сообщение от ArtGrek а где assignfile Не понял вопроса... Ты же сам его процитировал о_О Сообщение от ArtGrek вообше что ето table таблица, из которой заносятся значения в базу данных. table.append-добавить запись, следующая строка-изменить поле 'Path' P.S. еррор вылетает именно во время reset'a @ArtGrek 425 / 53 / 1 Регистрация: 31.12.2010 Сообщений: 191 18.02.2011, 18:08 I/O error 32 #4 разве для работы с Tabel, не надо зделать что либо в етом роде Assign(tabel, baza) ili create tabel Добавлено через 2 минуты чему равны aDir strname покажи как ты их получаеш @diagon Higher 1920 / 1186 / 49 Регистрация: 02.05.2010 Сообщений: 2,925 Записей в блоге: 2 18.02.2011, 18:23 [ТС] I/O error 32 #5 Нет, в инспекторе обьектов свойство Table.TableName связывает ее с файлом... И я пользуюсь