Suppress Message Box R6025 Pure Virtual Function Call

Ian Luebeck

I am developing a .NET 4 Application (WPF) that is using an old C++-Library. This library is buggy and at times I get pure virtual function calls. (And there is nothing I can do about that library...)

I have setup a Handler using _set_purecall_handler from msvcr100.dll. During debugging I can also confirm that my handler is called. After leaving my handler however, the applications shows the MessageBox informing of the pure virtual function call and then exits the application.

How can I prevent this messagebox from showing and continue to run the app?

Jonathan Potter

Since there's no way to recover safely from a call to a pure virtual function, a purecall handler is expected to terminate the process after reporting the error to the user. If your handler returns instead of terminating then it's assumed to have done nothing and the default handling kicks in.

Simply call exit(0) or similar at the end of your handler and the original dialog will be suppressed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Suppress Pure Virtual Function call modal dialog and crash silently

From Dev

box2d CreateFixture with b2FixtureDef gives pure virtual function call

From Dev

Pure virtual function call interesting cases

From Dev

Suppress convergence message in nnet multinom function in R

From Dev

Avoiding "Pure Virtual Function Call" in Derived Class C++

From Dev

Making SDL call a pure virtual member function as a event callback?

From Dev

Pure virtual function implementation

From Dev

Suppress error message in R

From Dev

Suppress error message in R

From Dev

Pure virtual function overridding virtual function

From Dev

Pure virtual function overridding virtual function

From Dev

C++: call pure virtual function from member function of same class

From Dev

Deriving implementation of pure virtual function

From Dev

How to implement pure virtual function

From Dev

Purpose of private pure virtual function?

From Dev

Class with implementation of pure virtual function

From Dev

How do I turn a C++ class into managed class and call the pure virtual function inside?

From Dev

Are there cases where using std::set_terminate does not catch a C++ pure virtual function call?

From Dev

Is there a way to call the "deleting destructor" of a pure virtual class?

From Dev

How to suppress R startup message?

From Dev

Suppress Azure Stop-AzureRMVM cmdlet warning message box

From Dev

calling a pure virtual function from operator<<

From Dev

Is a pure virtual function actually selected in overload resolution?

From Dev

Pure virtual function with implementation fails in XCode

From Java

Is it valid to override virtual function with pure specifier?

From Dev

const qualifier disappears from pure virtual function

From Dev

"Overloading" pure virtual function with different set of arguments

From Dev

Overriding a pure virtual function from templated classes

From Dev

Pure virtual and override function (c++)

Related Related

  1. 1

    Suppress Pure Virtual Function call modal dialog and crash silently

  2. 2

    box2d CreateFixture with b2FixtureDef gives pure virtual function call

  3. 3

    Pure virtual function call interesting cases

  4. 4

    Suppress convergence message in nnet multinom function in R

  5. 5

    Avoiding "Pure Virtual Function Call" in Derived Class C++

  6. 6

    Making SDL call a pure virtual member function as a event callback?

  7. 7

    Pure virtual function implementation

  8. 8

    Suppress error message in R

  9. 9

    Suppress error message in R

  10. 10

    Pure virtual function overridding virtual function

  11. 11

    Pure virtual function overridding virtual function

  12. 12

    C++: call pure virtual function from member function of same class

  13. 13

    Deriving implementation of pure virtual function

  14. 14

    How to implement pure virtual function

  15. 15

    Purpose of private pure virtual function?

  16. 16

    Class with implementation of pure virtual function

  17. 17

    How do I turn a C++ class into managed class and call the pure virtual function inside?

  18. 18

    Are there cases where using std::set_terminate does not catch a C++ pure virtual function call?

  19. 19

    Is there a way to call the "deleting destructor" of a pure virtual class?

  20. 20

    How to suppress R startup message?

  21. 21

    Suppress Azure Stop-AzureRMVM cmdlet warning message box

  22. 22

    calling a pure virtual function from operator<<

  23. 23

    Is a pure virtual function actually selected in overload resolution?

  24. 24

    Pure virtual function with implementation fails in XCode

  25. 25

    Is it valid to override virtual function with pure specifier?

  26. 26

    const qualifier disappears from pure virtual function

  27. 27

    "Overloading" pure virtual function with different set of arguments

  28. 28

    Overriding a pure virtual function from templated classes

  29. 29

    Pure virtual and override function (c++)

HotTag

Archive