Home > Delphi Unable > Delphi Unable To Write To Inifile

Delphi Unable To Write To Inifile

By writing into the registry the settings are stored only on one workstation. 0 LVL 20 Overall: Level 20 Delphi 18 Message Expert Comment by:Madshi ID: 68990382002-03-27 The following code The error being generated is Code 33: Another Process has locked a portion of the file. Porcelain View Public Profile Find More Posts by Porcelain 06-09-2010, 09:55 PM #2 Prog-Rocker just tryin to help Join Date: Jul 2006 Location: Local Space/Time Continuum Posts: 23,288 make Having the variable makes the value you pass into TIniFile easier to inspect and makes the logic you intended to write clearer to YOU, which makes the solution (the change to http://netfiscal.com/delphi-unable/delphi-unable-to-set-icon.html

Each key contains zero or more values. Anne carlo Delphi Developer Sat, 13 Aug 2005 01:09:12 GMT Re:ini files, text files and XP It is not a good idea to create objects from within a FormClose event (You Full disk problem on Ubuntu 16.04 (Xenial Xerus) Why does a (D)DoS attack slow down the CPU and crash a server? Code it. ™ Login .Net (VB and C#) PHP HTML5 / Javascript Java C/C++ SQL Perl ASP classic VB classic Delphi Cold Fusion Welcome to Planet Source Code! http://stackoverflow.com/questions/22477629/i-am-trying-to-write-to-ini-files-in-delphi-but-i-keep-getting-errors

The problem only occurs with Win2000. File Permissions in XP http://support.microsoft.com/kb/308419 (If you are not joined to a domain and want to view the Security tab, goto the "Set, view, change, or remove special permissions for files changing location of texmf folder for use across multiple computers (OS X / Apple) Word for fake religious people What does HR do for me? But what does that means? 0 LVL 20 Overall: Level 20 Delphi 18 Message Expert Comment by:Madshi ID: 68992112002-03-27 33 = The process can't access the specified file, because another

Regards, Madshi. 0 Message Author Comment by:ble ID: 69153062002-04-03 I found the problem. You have bookmarked an old page. I just don't see the logic of creating an TIniFile Object within a FormClose Event, more logical to create it within the FormCreate Event. -- Bitlogic Development Services. Connect with top rated Experts 19 Experts available now in Live!

Is ther a PtInCircle or PtInEllipse function. You have either misdiagnosed the problem (are you sure that everything really works out if you rename the INI in the line shown above?), or, perhaps, you already have a file more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed We had this same problem recently when trying to update an INI file under Terminal Server (W2K).

When an INI file that resides on a shared drive is cached, it makes sense for Windows to hold a lock on the file so other processes can't modify it. Article Details Views:850 Created on:Aug 06, 2014 Posted in: Delphi Poor 12345 Outstanding ©2016 QnE Software Sdn. For those of you not willing to disregard MS's warnings about SHGetSpecialFolderPath not being supported, here's an alternate version of GetFolderLocation using SHGetFolderPath, which is preferred: uses ShlObj, SHFolder, ActiveX, Windows; Quote> Delphi 5, XP, Novell 5.1 > When I try to save an ini file or write to a text file on the network, I get a message that it can't

Writing a recommendation letter for a student I reported for academic dishonesty more hot questions question feed lang-pascal about us tour help blog chat data legal privacy policy work here advertising https://www.experts-exchange.com/questions/20281606/Error-while-writing-to-an-inifile.html const sIniPath = 'p:\PREVIEW.INI'; WritePrivateProfileString( nil, nil, nil, sIniPath ); try With TIniFile.Create(sIniPath) do try try WriteInteger('Zoom', Actually, I can think of a reason why that error might be returned. I think it will end up in the same dir as the EXE (or a virutal-store folder). –Andreas Rejbrand Sep 11 '11 at 10:54 3 TIniFile.Create('some.ini') is created in Windows

Join the community of 500,000 technology professionals and ask your questions. http://netfiscal.com/delphi-unable/delphi-unable-to-load-libmysql.html Does a byte contain 8 bits, or 9? Output integers in negative order, increase the maximum integer everytime Is a Windows XP virtual machine with no network connection safe from hacking? Windows XP handles files differently to Windows 9x.

Thanks, You're in! That's why I wrote my second comment above, asking if the problem isn't misdiagnosed. Quote> Anne Go to page: [1] [2] Other Threads 1. have a peek here Also, yes I have: Declared 'IniFiles' in the 'uses' clause (Locally) Declared IniFile I have placed that code under FormCreate, but the problem is this .ini file is not created when

Field 'MyField" not found2. As far as I am aware it is a drop-in replacement. share|improve this answer edited Oct 17 '12 at 17:31 Bo Persson 60.8k1380149 answered Oct 17 '12 at 17:28 Jp Silver 111 please use syntax highlighting: Indent everything at least

ble... 0 Featured Post 2016 Annual Membership Survey Promoted by Experts Exchange Want to help improve the Experts Exchange community and be entered to win two great prizes?

It is a drive I save to all the time. Covered by US Patent. I do have windows xp, but when I follow the steps I don't seem to have the same things to go by. I still have the error.

ble. Quote> Any suggestions would be greatly appreciated. > Thanks, > Anne Sainz Ken Whit Delphi Developer Tue, 09 Aug 2005 23:15:59 GMT Re:ini files, text files and XP Anne, Quote> When Watch this micro tutorial that describes how to configure prices for Magento super attributes. http://netfiscal.com/delphi-unable/delphi-unable-to-load.html Stu 0 Message Author Comment by:ble ID: 68988542002-03-27 The reason I am using inifiles is that users can log in on every computer and want to use their settings on

Process Stopped. Adding frmMain ties it to a single instance of the form instead of working on any instance. Get 1:1 Help Now Advertise Here Enjoyed your answer? A Paradox 7 database is handled by a Delphy 5 program made by our company.Another company uses this program and gets the error: unable to write to rbuilder.ini.

© Copyright 2017 netfiscal.com. All rights reserved.