Hello,
I am currently using a µvision V5.26.2.0 and sometimes I can't save source file ( h , cpp ).
When it happened the pop ups window showing this message:
"Encountered a sharing violation while accessing {Path to me source file}"
The only one way that can change this behavior is to restart the µvision IDE.
Can I do something else?
I do the same most of the time.
But in that occasion, I was in a rush to finish off work and leave the work place.
The sharing violation happened to not one but all the .H files opened. It will not show the error message again if you press 'save all' button unless you click on the individual tab in the editor again.
So in the end I missed saving one of the files and went home. Guess what I found out the next day?
I meant this kind of bug is quite in-tolerable to me.
Ah, that figures! I have (so far) only had a single error at a time, probably because CTRL-S is so firmly layered in my fingers ;) But agree, it would be VERY nice if the bug could be removed ASAP!
MDK development team is working on a solution now. This "sharing violation" issue should be fixed in the next MDK release (newer than MDK v5.26))
Hello Carsten,
Please open an support ticket with Keil, and they can try to get you an early release of the fix.
Kevin, I already did at Nov 5th (Sankalp is on it) Looking forward to get a fix for this one :)
Does that mean they've identified the problem?
If so, is there anything people can do to avoid it while we await the solution?
Is it purely an ARM MDK thing, or are the other architectures also affected?
I've seen this error only once after update to 5.26.2, on Win10 1803. When this error pops up, changes made in the IDE in affected files are lost, even the files appear as saved. So if you made valuable changes, copy the affected file out of the editor and save elsewhere. Have not seen this with other apps.
-- pa
As in my case, I am developing in Win 7 and it happens at least twice in a day.
I have got some direction, might be helpful.
The issue happened quite often when, I am editing the code without compilation.
For Example:
Good scenario - I am pressing the "F7" after a couple of written rows.
Bad scenario - I am not compiling for a long time and making a lot of changes in a ".cpp" file and then, I am pasting the method declaration into the ".h" file.
This issue has been resolved and contact technical support team at support.intl@keil.com for a patch.
Really!
Thank you for notifying me!!!!
Same issue here. Win10, all work done on local hard drive, sharing violation with my header files, sporadically. Sometimes they save, sometimes they don't. Hoping for a fix soon.
It has already been fixed, see above (stupid order when looking thru the thread) I have a version that has been running perfect for a week now, will be released by ARM/Keil in the near future
Just to add, the fix will also be available with next MDKv5.27 pre-release which will be available around Christmas and will be available to download from http://www2.keil.com/mdk5/
Just as a note, I'm running with the new 5.27 prerelease and I now (although seldom) see "Error number: 22" when saving a .h file. So it seems the error is not completely gone (at least not for me). The frequency of it is however much lower than before!