Search code examples
compiler-errorsc++builderc++builder-2009

F1001 Internal code generator error in RAD STUDIO 2009


I'm getting this worthless error in my code. it's very consistant and restarting the compiler hasn't done anything. Has anyone else ever solved this?

while( int CharPos = _Message.Pos(_What) )
{
    _Message.Insert( _With, CharPos);
    _Message.Delete(CharPos + 1, 1);
}

Solution

  • Well... apparently the compiler breaks when you try to declare an int in the while loop's condition.