That appears to be an issue with your StrCompare(v.GetPrototypeFileName) lines being too long. For each else if statement, you can only have around 10 or so StrCompare otherwise it will do that. To fix this, create a similar else if condition for the rest of the remaining prototypes you wish to StrCompare.