W
Will
Hi Everyone,
I have been having a bizarre problem when I do Run Without Debugging
(I have been doing this do to the intensity of some code which runs
slow when Debugging). When I run without debugging, the application
appears hangs on this code:
private static CCPix ClusterListHasPoint(Point ring,
List<CCPix> tileList)
{
for (int i = 0; i < tileList.Count; i++)
{
if (tileList.Location.X == ring.X &&
tileList.Location.Y == ring.Y)
{
return tileList;
}
}
return null;
}
If the if statement is taken out, the loop does eventually finish
without debugging... but ridiculously longer.
With Debugging on, it does not cause a problem. Does anyone have any
thoughts? I've been looking around the web without too much luck :-\ I
have a feeling I am missing something small.
Thanks,
Will
I have been having a bizarre problem when I do Run Without Debugging
(I have been doing this do to the intensity of some code which runs
slow when Debugging). When I run without debugging, the application
appears hangs on this code:
private static CCPix ClusterListHasPoint(Point ring,
List<CCPix> tileList)
{
for (int i = 0; i < tileList.Count; i++)
{
if (tileList.Location.X == ring.X &&
tileList.Location.Y == ring.Y)
{
return tileList;
}
}
return null;
}
If the if statement is taken out, the loop does eventually finish
without debugging... but ridiculously longer.
With Debugging on, it does not cause a problem. Does anyone have any
thoughts? I've been looking around the web without too much luck :-\ I
have a feeling I am missing something small.
Thanks,
Will