We're getting incorrect syntax errors (in anohter post, no responses) and we've found the cause.
Code:
private static int tableCounter = 0;
public Table()
{
uniqueInteger = tableCounter++;
}
We found it while troubleshooting this issue all day. Looks like this counter is injected into the alias but never decremented or reset. Doesn't rollover either...
We initialized the number at 1016789 which is when we get the error. We can now reproduce it.
We need to fix this problem asap since it's affecting our production server. I'm guessing it's the quantity of users*objects we use.
The number keeps getting higher idefinitly. I was thinking of adding something like:
Code:
private static int tableCounter = 0;
public Table()
{
if(tableCounter> SomeThreshold) tableCounter = 0;
uniqueInteger = tableCounter++;
}
But I have no idea what that will cause. I'm assuming many objects are cached and have their "uniqueInteger" with them. I also don't know what the upper bound is. I can see that the max alias is 10, +2 for an added suffix and it seems when this number is big enough (possibly too long) that the alias get's inappropriatly truncated.
I'll be happy to submit and issue, just looking for some advice for the short term.