Resource files constant redraw

4 posts, 0 answers
  1. Troy
    Troy avatar
    5 posts
    Member since:
    Feb 2006

    Posted 28 Aug 2011 Link to this post

    I've noticed that with JustCode enabled, it's almost impossible for me to edit Resource files or work with the list in Test View as the window is constantly redrawing.

    It happens so slowly that I can see each line in the lists refresh and then it restarts from the top again. Sometimes I'll get lucky and this will only happen 3 times before I can edit, but that's a long 10-15second wait each time and it'll repeat again after an edit/scroll.

    Once I disable JustCode I can edit resource files with speed and notice no window redraw at all.

    Is this an issue with my setup? with the product?
    Is there any way to disable JustCode for resource files? It's a pain to have to edit them manually outside the ide.
  2. Kaloyan
    Kaloyan avatar
    82 posts

    Posted 02 Sep 2011 Link to this post

    Hello Troy,

     We're not aware of such an issue and, unfortunately, couldn't reproduce it in our test environment. Your assistance might be needed a bit more here.
    Could you share whether you have some other Visual Studio extensions installed alongside JustCode? What kind of solution are you working on? What's the number of your unit tests in TestView and lines of resources in resx file when that happens?
    It'd be nice if you could provide a video/sceen cast of the behavior, so that we're sure we're on the track on that issue.
    Thanks for the cooperation.

    Kind regards,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
  4. Derek
    Derek avatar
    4 posts
    Member since:
    Sep 2011

    Posted 25 Oct 2011 Link to this post

    I'm having the same or very similar issue with JustCode.  I also had to disable JustCode in order to use the resource file successfully.

    Win 7 Ultimate - VS2010 (As Admin) - VB.NET & JustCode Internal Build 10-20-11

    Here's the best I can give you on reproducing.
    1. Create a new Windows form.
    2. Add a windows button control.
    3. Edit the Image property, and use the "Resource File", "Import" method.  Choose the image to set on the button from the listbox.
    4. Now repeat steps 2 and 3 a few times so there are multiple images in the resource file.

    My Results:

    1. VS creates a Resources.Designer.VB file.
    2. * I believe JustCode locks the file open so that VS cannot write to it, and when you insert another resource, VS creates Resources1.Designer.VB. 
    3. VS now has issues synchronizing the resources with the script and I get errors on my form that the image resources on my buttons do not exist.  VS also has some drawing/redrawing issues related to this.
    4. VS also if restarted will say that Resources is ambiguous, because of the two files with the same namespace/class.  

    Hope that helps resolve the issue.  
  5. Kaloyan
    Kaloyan avatar
    82 posts

    Posted 01 Nov 2011 Link to this post

    Hi Derek,

    Sorry for the delay. I still cannot reproduce that issue in our test environment. Is this a VB Windows Forms Application? What's the version of .NET Framework you're choosing from the New Project window? Can you try figuring out what application is locking that resource file exactly? You can try with a tool like this or something similar. Your asistance is highly appreciated.
    There's a more recent internal build from last week. You can give that a spin and let me know whether the issue persists there.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top