This is a migrated thread and some comments may be shown as answers.

Resource files constant redraw

3 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Troy
Top achievements
Rank 1
Troy asked on 29 Aug 2011, 12:41 AM
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.

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 02 Sep 2011, 01:39 PM
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,
Kaloyan
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 >>

0
Fred
Top achievements
Rank 1
answered on 25 Oct 2011, 05:40 PM
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.  
0
Kaloyan
Telerik team
answered on 01 Nov 2011, 02:12 PM
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,
Kaloyan
the Telerik team

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

Tags
General Discussions
Asked by
Troy
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Fred
Top achievements
Rank 1
Share this question
or