acquaman / MPlot

Lightweight 2D plotting library for Qt 4, with a minimal API and fast drawing performance
GNU General Public License v3.0
7 stars 1 forks source link

Crash during MPlotScene destructor #1

Closed dretrex closed 13 years ago

dretrex commented 13 years ago

Since I've been working on my XRF program lately, I've been noticing that MPlotScene seems to be crashing when it gets deleted. This isn't a big deal for me since it is only deleted when the program ends, but it could be more problematic if someone was dynamically adding and deleting scenes.

dretrex commented 13 years ago

I'm closing this issue due to the changes Mark made in commit edb159f803c715762dc3 where the zoomer tools were being deleted after the plot had been deleted.

markboots commented 13 years ago

Darn, you beat me to it. And I thought I'd get to close an issue!

I'm assuming this solved the problem on your machine too? Did you test in release mode?

dretrex commented 13 years ago

It solved it on my machine too. I didn't test it on release mode. I'll be sure to do that today.

Interesting aside. The comment box here doesn't play nice with IE7 or whatever is on my laptop. For every character added, it makes the comment box bigger by one line. So my browser keeps increasing in length until it deems it necessary to add a scroll bar (this happened before I started the aside. Kind of silly.)

dretrex commented 13 years ago

Yes, everything works fine when the program is in release mode.