C 运行时错误 R6025C Runtime Error R6025

纯虚函数调用pure virtual function call

备注

如果在运行应用程序时遇到此错误消息,则该应用程序已关闭,因为它有一个内部问题。If you encounter this error message while running an app, the app was shut down because it has an internal problem. 此错误的最常见原因是应用中的 bug 或安装已损坏。The most common reason for this error is a bug in the app, or a corrupted installation.

可以尝试以下步骤来修复此错误:You can try these steps to fix this error:

  • 使用控制面板中的 "应用和功能" 或 "程序和功能" 页来修复或重新安装该程序。Use the Apps and Features or Programs and Features page in the Control Panel to repair or reinstall the program.
  • 检查 "控制面板" 中的 "软件更新" Windows 更新Check Windows Update in the Control Panel for software updates.
  • 检查应用的更新版本。Check for an updated version of the app. 如果问题仍然存在,请与应用程序供应商联系。Contact the app vendor if the problem persists.

面向程序员的信息Information for Programmers

尚未实例化对象来处理纯虚函数调用。No object has been instantiated to handle the pure virtual function call.

此错误是由通过转换为派生类的类型创建的指针调用抽象基类中的虚函数引起的,但实际上是指向基类的指针。This error is caused by calling a virtual function in an abstract base class through a pointer which is created by a cast to the type of the derived class, but is actually a pointer to the base class. 当在 void * void * 基类的构造过程中创建时,当从转换为指向类的指针时,会发生这种情况。This can occur when casting from a void* to a pointer to a class when the void* was created during the construction of the base class.