Thread: runtime error R6025 - pure virtual function call

  1. #1
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130

    runtime error R6025 - pure virtual function call

    I have an MFC Server application that recently started popping up the following error messages:

    runtime error R6025
    - pure virtual function call
    More details for this error message can be found here.

    The last change I made was calling a function that I had already implemented and called in two places before. Now I called it in case of unexpected errors. As I could not test "unexpected errors" ( believe me, we have a lot of expected errors including random crashes in random places ) it went live untested.

    This error can not be caught using an exception handler.
    It pops up a message box and halts the program bypassing catch clauses.

    While the error looks pretty straightforward and easy to handle using the provided way of closing in on it, there is one problem with the solution suggested: I don't have any abstract base classes/pure virtual functions in my application !

    Well, I'm stuck. I'll try to remove my last changes and see if it's running fine then hoping for no unexpected errors, but that solution isn't very satisfactory.

    Any ideas ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    If it's not in a class and you don't have any pure virtual functions, it almost sounds like the linker isn't linking correctly...but that wouldn't make sense. Have you tried a full rebuild of your program?

    Seems really odd that that should happen if you don't even have any virtual calls...

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One possible solution is to enable RTTI in project settings.

    Kuphryn

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    I will try that when I'm back at work, thanks
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling a pure virtual function from a constructor...
    By starcatcher in forum C++ Programming
    Replies: 4
    Last Post: 02-10-2009, 09:12 AM
  2. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  5. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM