This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sharing violation

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?

Parents Reply Children
  • Former Member
    0 Former Member in reply to Seng Tak GOH

    How can this destroy hours of work ?
    In my case, when I get the "sharing violation" I just press CTRL-A and CTRL-C, closes uVision, opens it again (the file that had sharing violation even has the focus after uVision is re-opened) and press CTRL-A and CTRL-V, and all is on track again ?

  • 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.

  • Former Member
    0 Former Member in reply to Seng Tak GOH

    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!

  • Hello Carsten,

    Please open an support ticket with Keil, and they can try to get you an early release of the fix.

  • Former Member
    0 Former Member in reply to Kevin

    Kevin,
    I already did at Nov 5th (Sankalp is on it)
    Looking forward to get a fix for this one :)