views:

385

answers:

3

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);
}
A: 

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

thepaulpage
+2  A: 

You could:

Edit: By the way, have you tried compiling the offending source file (or at least a minimal skeleton file containing just a main() and the offending code) with the command line compiler? BCB tends to hide a lot of detailed error info when compiling from the IDE - using the command line compiler tends to show the real error. Not foolproof, but worth a shot.

Mihai Limbășan
+1  A: 

This is expected to be addressed in the soon to be released Update 3 for RAD Studio 2009.

David Dean - Embarcadero
Thanks for the update!
Mihai Limbășan
This update was released today.
David Dean - Embarcadero