Permanently analysing V3.0
Hi, I have a C# document that is permanently analysing. I have found that it is one line of code that causes the problem, if I comment out, every thing is fine.
The line is: toggle = !toggle;
Context:
bool toggle = true;
foreach (object var in collection_to_loop)
{
if (toggle)
{
//Do something;
}
toggle = !toggle;
}
I created a new project to test and it works fine, it is only a problem in the context of my complete document, which is doing a lot more than above.
Any help would be appreciated
Julian
Please sign in to leave a comment.
I cannot reproduce the problem.
Please could you create the complete sample and send it to me for analysis?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Julian" <supertramp1963@yahoo.co.uk> wrote in message
news:24215693.1183375010062.JavaMail.itn@is.intellij.net...
>
>
>
>
>
>
I have the same problem with this code:
Label Label1 = FindControl("Label1") as Label;
Label Label2 = FindControl("Label2") as Label;
Label Label3 = FindControl("Label3") as Label;
Label Label4 = FindControl("Label4") as Label;
Label Label5 = FindControl("Label5") as Label;
Label Label6 = FindControl("Label6") as Label;
Label Label7 = FindControl("Label7") as Label;
Label Label8 = FindControl("Label8") as Label;
Label Label9 = FindControl("Label9") as Label;
Label Label10 = FindControl("Label10") as Label;
Label Label11 = FindControl("Label11") as Label;
Label Label12 = FindControl("Label12") as Label;
Label Label13 = FindControl("Label13") as Label;
Label Label14 = FindControl("Label14") as Label;
Label Label15 = FindControl("Label15") as Label;
Label Label16 = FindControl("Label16") as Label;
Thank you,
Vadim
Hi Eugene, fianlly managed to reproduce the problem, see code below. Comment out: 'toggle = !toggle' and it's OK
Julian
using System.Collections.Generic;
using System.Drawing;
namespace ConsoleApplication3
{
internal class Program
{
private static void Main(string[] args)
{
List verts1 = new List(); List verts2 = new List]]>();
foreach (Point vert1 in verts1)
{
bool toggle = true;
foreach (Point vert2 in verts2)
{
if (toggle)
{
//Do something;
}
toggle = !toggle;
}
}
}
}
}
Thank you. Problem is reproduced.
You can monitor its status here:
http://www.jetbrains.net/jira/browse/RSRP-44699
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Julian" <supertramp1963@yahoo.co.uk> wrote in message
news:3608613.1183381785335.JavaMail.itn@is.intellij.net...
>
>
>