-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
Delphi To/From
To/FromCODEGuides
Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi Object PASCAL Topic   Print This     

Hepl!!! I/O Error 32 is chasing me!!

Hepl!!! I/O Error 32 is chasing me!! in Delphi Object PASCAL topic (part of our Pascal and Delphi Coding group).

Quick Search: chasing   Hepl I/O   Hepl I/O Error   32 chasing  
nass
uk
i try to save a file on the disk using the following code, please:

procedure SaveFile;

begin
AssignFile(PathFilerout, temp '\Path.Ini');
Rewrite(PathFilerout);
Writeln(PathFilerout, TimeForm.OpenDialog1.Filename);
Writeln(PathFilerout,TimeForm.Edit1.Text);
Writeln(PathFilerout,TimeForm.Edit2.Text);
CloseFile(PathFilerout);
end;

now when the program reaches:
Rewrite(PathFilerout);

an exception occurs and the 'I/O Error 32'
occur.

I have searched ALL help menu and havent found any error w/ a number 32..

does anyone know whats wrong and how can i gget rid of this problem??
 Posted 25 years ago (Thread Starter)
Comment Quote
About nass
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #4409, 2 replies
Thread Started 11/24/2001 2:28:00 AM
View Counter=10757
Last Reply Posted 12/26/2001 12:13:00 AM)
Location=uk  
Joined=25 years ago   MB Posts=3  
Most Recent Post
AliNaqvi
Islamabad
Hi,
Actually the system couldn't access the file which you've specified. I/O Error 32 states that

"The process cannot access the file because it is being used by another process."

There could be many reasons to this problem.
May be you dont' have access permissions to that file.
Or may be that file is already in use by some other process which may be caused by opening the file but you haven't closed that file.

Hope it will help you.

Ali
 Posted 25 years ago
Comment Quote
About AliNaqvi
Visit Profile
Membership pending.
Member subscribes to this thread but email is NOT VERIFIED.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #4667 (Level 1.1)  Reply to 4409
Thread Started 12/26/2001 12:13:00 AM
View Counter=2
Location=Islamabad  
Joined=25 years ago   MB Posts=1  
Moderator
Bryan Valencia
209 Software
Home office in Manteca, CA
I think you're problem is in the

AssignFile(PathFilerout, temp '\Path.Ini');

line, but not sure. You should look up in the help under the following items.

INIFILES, Tinifile.
There are also some methods called
readstring, readinteger, readbool, and writestring, writeinteger, writebool.

This object (Tinifile) is a real time saver when storing and retrieving configuration data.

BV Big Grin!

Yahoo ID: Commander_Bombast

Opportunity is missed by most because it is dressed in overalls and looks like work.

--THOMAS ALVA EDISON

 

 Posted 25 years ago
Comment Quote
About Bryan Valencia
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Bryan Valencia

Bryan Valencia is the author of millions of lines of code and writes for PrestwoodBoards and Visual Studio Journey on-line magazines.

Web Presence
LinkedIn, Bryan On LinkedIn (Visit Me)
Website, Software Services (http://209software.com/)
Website, Visual Studio Journey (http://vstudiojourney.blogspot.com/)

Post ID #4491 (Level 1.2)  Reply to 4409
Reply Posted 12/3/2001 1:14:00 PM
Location=Home office in Manteca, CA 
Joined=19 years ago   MB Posts=23   KB Posts=27   KB Comments=4   BLOG, Topics=2  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1172A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #4409 Counter
10757
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]