# Write INI File sharing violation

**URL:** https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642
**Category:** Bugs
**Created:** [June 25, 2006, 10:25am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642 "2006-06-25T10:25:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [June 25, 2006, 10:25am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/1 "2006-06-25T10:25:57Z")

</div>

Hi,  
  
I encounter a weird problem when I try to write to an ini file. I have a file iterator loop which reads lines from a file, formats them in the after each iteration script and under it I have a write ini file action which writes to a separatre ini file.  
When I run the iterator I get sharing violation in the write ini file saying:  
“Unable to Write to Ini File : C:\FBProjects\SPMachines.ini”  
"Access violation at address 77F830AF in module ‘ntdll.dll’. Write of address 51F27CF1"  
  
Weirly the action completes successfully (no failure in FB) but the itarator stops (no ini file is written)!! It’s like there is connection between the file I read from and i write to but there isn’t at all.  
Also the ini file in not open or shared by any other application and this happens to me on more that one computer.  
  
Sometimes this does works (I can’t exactly tell when) but most of the times it doesn’t.  
  
Your help or tip what could be the problem is appreciated.  
  
NirS

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [June 25, 2006, 1:03am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/2 "2006-06-25T01:03:28Z")

</div>

One correction, the Write ini file action DOES fail.

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [June 25, 2006, 1:08am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/3 "2006-06-25T01:08:34Z")

</div>

OK let me refine the problem, it only happens when the ini file does not exists and it is created by the Write INI file action (Allow create checked). It’s like the create action and the write action (both in the same FB action) interfere with each other.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 26, 2006, 2:43am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/4 "2006-06-26T02:43:11Z")

</div>

Hi Nir,  
  
I couldn’t reproduce this - could you send us a test case that shows this problem please? Also, maybe it’s caused by the system not finishing the write operation before the next action tries to open the ini file. Try adding a delay action and see if that makes any difference.  
  
.t8

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [June 26, 2006, 2:35am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/5 "2006-06-26T02:35:56Z")

</div>

Well I only use Write INI file with allow create so it both creates it and tries to write to it.  
  
I couldn’t reproduce it in a clean project ![]( "Sad")  
  
I can send my main project though.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 26, 2006, 2:50am UTC](https://www.finalbuilder.com/forums/t/write-ini-file-sharing-violation/2642/6 "2006-06-26T02:50:02Z")

</div>

I couldn't reproduce it in a clean project [Sad]  
  
I can send my main project though.
  
  
hmm, that's strange. Is there any difference between your test project and your real one? Don't bother sending your main project as I won't be able to run it due to all the dependencies. We really need a reproducible test case for this one...
