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 |
Quick thought as I'm here at the mo. Missing
propagateEventin the list handler, for cases you aren't completely handling the event? (i.e. when it shuts down)Just had a quick look at that example. I suspect the logMessage below is trying to log to the
textCtrlat a sensitive time in the app lifecycle.other -> logMessage ("list control event.")Replacing the line
other -> logMessage ("list control event.")with
other -> return()solved the problem.
The solution is now in the repository.