Menu

#106 samples/wx/ListCtrl: pure virtual method called

confirmed
closed-fixed
nobody
None
3
2016-01-02
2015-12-23
No

When ListCtrl is exited, the program crashes with the messages:

pure virtual method called
terminate called without an active exception
Aborted (core dumped)

Attached is a stack trace.

Versions:

Item Version
OS Ubuntu
GHC 7.10.3
wxWidgets 3.0.2
wxHaskell 0.92.2.0 (currently in Github repository)
GCC 4.8.4
1 Attachments

Discussion

  • Si⠀

    Si⠀ - 2015-12-30

    Quick thought as I'm here at the mo. Missing propagateEvent in the list handler, for cases you aren't completely handling the event? (i.e. when it shuts down)

     
  • Si⠀

    Si⠀ - 2015-12-30

    Just had a quick look at that example. I suspect the logMessage below is trying to log to the textCtrl at a sensitive time in the app lifecycle.

    other -> logMessage ("list control event.")

     
  • Henk-Jan van Tuyl

    • status: open --> closed-fixed
     
  • Henk-Jan van Tuyl

    Replacing the line
    other -> logMessage ("list control event.")
    with
    other -> return()
    solved the problem.
    The solution is now in the repository.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.