FindControl issue

Hi all,
When I have multiple FindControl method calls in one function R# never ends code inspection process. Could someone look into this issue?

Thank you,
Vadim

4 comments
Comment actions Permalink

Hello Vadim,

What is that FindControl method? Could you give us complete sample code?

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> Hi all,
IR> When I have multiple FindControl method calls in one function R#
IR> never ends code inspection process. Could someone look into this
IR> issue?
IR> Thank you,
IR> Vadim


0
Comment actions Permalink

For example this code in codebehind of Page or UserControl:

public void SomeFunction()
{
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;
}

0
Comment actions Permalink

Hello Guys,

I have the same problem: with 16 Labels it works normal, but when I add more Labels (just Copy -> Paste) - Code Inspection stops to working. (See my screen shots in attachment)

http://img515.imageshack.us/my.php?image=snag001sg4.png
http://img175.imageshack.us/my.php?image=snag002yb9.png

0
Comment actions Permalink

Thank you.
The problem is reproduced.
Will be fixed in 3.0.2

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Vadim Ivanov" <no_reply@jetbrains.com> wrote in message
news:26890286.1184329307354.JavaMail.itn@is.intellij.net...

For example this code in codebehind of Page or UserControl:

>

public void SomeFunction()
{
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;
}



0

Please sign in to leave a comment.