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?
Hello Ron,
Thank you for your assistance.
1. The "File and Project Handling" section is unchecked. ( as a default ) 2. I am using a Windows 7 Enterprise version. 3. The Keil is installed in the C:\Keil_v5. 4. The source code is on drive D: ( Local drive , shrink partition ). 5. This is a Laptop and only I log in. 6. I am not using the "Microsoft System Center Endpoint Protection". 7. The anti-virus is Trend Micro.
This issue is an internal bug I guess so.
The reason why I am thinking so,
There is only one way to improve this behavior and is to restart an application ( Keil ).
I will try to understand the sequence of my usage that leads an issue.
Just more guessing, but:
* That the file gets locked may be nothing to do with Keil;
* That uVision does not recover after it's happened possibly (probably?) is to do with Keil.
And maybe one important thought, when it is locked in a Keil and I can't save the file.
I can do it in a standard editor, edit, save and the Keil allows to import changes event it has locked.
Observed this here today, the IDE is holding the share, closing the project is not sufficient to clear this. Closing the tool down and restarting, and loading the project then worked.
File is not shared on a network, file is not open for view/mapped in any other application.
Got a resource leak here guys...
Some additional info if it helps
uV 5.26 pre install Win7 64-bit, QC Xeon, 16 GB RAM
Occurred after enabling browse information and rebuilding, a couple of build cycles ago, bit slow otherwise.
File in question will cause very large change in dependency tree, perhaps background syntax checking of all files in project and library. stm32l4xx_hal_conf.h
Doing a quick edit, and rebuild.
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!!!!
I have the same issue and agree with you.
Clicking the "Download MDK v5.27 pre-release" button.
Direct link:
www2.keil.com/.../527pre
This edition should resolve most users issues with sharing violations.