F1001 RAD STUDIO 2009中的内部代码生成器错误

时间:2022-06-28 09:48:06

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

3 个解决方案

#1


2  

You could:

  • follow QC#66963

  • search for F1001 on qc.codegear.com: http://dn.codegear.com/search?qall=f1001&sourcelang=cpp&allsites=y

    在qc.codegear.com上搜索F1001:http://dn.codegear.com/search?qall = f1001&sourcelang = cpp&allsites = y

  • do what the compiler documentation has to say about F1001, i.e. contact technical support.

    执行编译器文档对F1001所说的内容,即联系技术支持。

  • all of the above :)

    上述所有的 :)

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.

编辑:顺便说一下,您是否尝试使用命令行编译器编译有问题的源文件(或至少包含一个包含main()和违规代码的最小骨架文件)?从IDE编译时,BCB往往会隐藏大量详细的错误信息 - 使用命令行编译器往往会显示真正的错误。不是万无一失,但值得一试。

#2


1  

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

嗯......当你试图在while循环的条件中声明一个int时,显然编译器会中断。

#3


1  

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

预计将在即将发布的RAD Studio 2009更新3中解决。

#1


2  

You could:

  • follow QC#66963

  • search for F1001 on qc.codegear.com: http://dn.codegear.com/search?qall=f1001&sourcelang=cpp&allsites=y

    在qc.codegear.com上搜索F1001:http://dn.codegear.com/search?qall = f1001&sourcelang = cpp&allsites = y

  • do what the compiler documentation has to say about F1001, i.e. contact technical support.

    执行编译器文档对F1001所说的内容,即联系技术支持。

  • all of the above :)

    上述所有的 :)

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.

编辑:顺便说一下,您是否尝试使用命令行编译器编译有问题的源文件(或至少包含一个包含main()和违规代码的最小骨架文件)?从IDE编译时,BCB往往会隐藏大量详细的错误信息 - 使用命令行编译器往往会显示真正的错误。不是万无一失,但值得一试。

#2


1  

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

嗯......当你试图在while循环的条件中声明一个int时,显然编译器会中断。

#3


1  

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

预计将在即将发布的RAD Studio 2009更新3中解决。