This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with Code Composer Studio

Hello,

I'm new to using Code Composer Studio 3.3 and am having a very frustrating problem. Sometimes after editing code in my main c file, when I go to save or rebuild I get the following message:

"The document has been modified outside of Code Composer. Would you like to reload the file?"

This happens when I haven't even touched the file outside of CCS. If i click yes or no on the dialog box the file is no longer available - If i try to reopen it from the project window i get a message saying the file cannot be found, even though it is clearly still there. Removing the file from the project and adding it again doesn't help. If I close CCS and try to open the file with an external editor, Windows says "Access denied"

The only way to get it working again seems to be to reboot the computer.

Does anyone have any idea why this is happening?

Thanks

  • That sounds like a sort of problem I've seen too many times with Microsoft Windows and its networking / applications under various circumstances.   If you're accessing your project files over some kind of network shared path or via some kind of removable storage device, try again using files stored on a purely local non-network shared / non-removable storage type of location.  Check to see if there are any service packs, recommended / important / critical updates, or compelling hotfix patches available for your operating system, and consider installing them.  You might look into storing the project files on very simple, short path names -- ones that don't contain any spaces or any/many punctuation characters in the path components, path+file names that are only a few dozen characters long in total, etc.

    It may be that there's a mass storage, chipset, or networking driver installed on your PC that is not working properly.  Sometimes installing a newer version can help; sometimes the newest version is problematic and you have to revert to some alternative / older version.  Sometimes the "default" / generic driver Microsoft provides will work better than any "suggested" specific 3rd party driver from the chip manufacturer (e.g. NVIDIA, ATI, AMD, REALTEK, ...). 

    I know various people have reported issues with various CCS versions and Vista / Windows 7 etc.  So check to see if there are known problems / work-arounds pertaining to functionality on your particular OS.

    Sometimes broken anti-virus / security programs can do things like quarantine certain files inappropriately restricting access to them unexpectedly.  That's another thing to check.

     

  • I am moving this to the Code Composer Forum so the tools group can provide a response to this.

    Regards,

    Tim Love

  • I have seen issues where ClearCase has been in use and it was refreshing the timestamps on files even though they had not changed.  This causes CCS to prompt you to reload any of the files that are open.

    Another thing you can try is to turn off the prompt.  Option -> Editor -> Editor Properties.  Uncheck the box that says "Always prompt before reloading files"

     

    John

  • Hi,

    Thanks very much for the advice. I turned off the "Always prompt before reloading files" option today which stopped the messages popping up. However this doesn't seem to stop the files locking up. Sometimes when I go to build or just to save, the file main.c gets renamed to main.000, main.001 etc and I can no longer access the original file. I have to restart to get going again. Is there a way to stop CCS looking for changes in files all together? I'm just working with files locally on my computer so there's nothing that should be changing them outside of CCS.

    Thanks

  • Just a quick thought, it may be worth updating your CCS 3.3 service release through the update advisor site under the help menu of CCS if you have not already, if you are seeing this problem and you are not using any clear case or other code control or odd file storage than perhaps the issue will go away with an updated CCS version.

  • I've already updated to the latest release but sadly no improvement. None of my files are under version control at the moment. Could my antivirus software cause any issues?

  • WillT said:
    Could my antivirus software cause any issues?

    Theoretically I suppose it could as C. Hayes suggested, though I have not seen this happen personally, usually antivirus software issues with CCS I have come across related to the installation process being hindered by the antivirus software. What sort of antivirus are you using? It may be worth a try to disable it temporarily to see if CCS still chokes on the files.

  • I've added my project folder to the exclusion list for Autoprotect and scans on Norton Internet Security. So far so good...

  • Will,

    Good to know that it got rid of the problem.  We should add that tip to our release notes and on our mediawiki site.

    Regards,

    John