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
One correction, the Write ini file action DOES fail.
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.
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
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
I can send my main project though.
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...