Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Same bug here. You can open the Windows task manager and watch the GDI objects. If a Zoomer (and on my computer a Picker as well) is enabled you are able to create about 1000 GDI objects per second. After about 10'000 GDI objects Windows isn't happy anymore.
(About 50% of the Qwt demos crash on my computer when I recompile everything with Qt 4.5.0 rc1 (when I move the cursor over a plot), but this is maybe my problem).
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Quote:
Originally Posted by
Azraiyl
(About 50% of the Qwt demos crash on my computer when I recompile everything with Qt 4.5.0 rc1 (when I move the cursor over a plot), but this is maybe my problem).
No, it's because of an changed API of Qt 4.5.0 that let's Qwt run into a NULL pointer.
I adopted the Qwt code yesterday, but didn't check the Windows platform yet. So with the code from SVN ( 5.1 branch ) there are chances to have a working combination.
Uwe
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Thanks. Examples now build fine and the Picker/Zoomer does not create tons of GDI objects anymore (at least with Windows XP).
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
I confirm the leak was on Qt side. Qt 4.5.0 release candidate are fixed but you need to download Qwt 5.1 from svn to play with that Qt version.
Gianni
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Great to hear you got it all sorted. Thanks Uwe, and everyone else!
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Hi
I've read through this thread, and unless I'm missed something my setup should be OK. I am running qt4.4.3 and qwt5.1.1 on windows xp. However my setup is suffering from the same problem
warning: ASSERT: "m_hdc" in file painting\qpaintengine_raster.cpp, line 4286
Anyone any ideas why this is
Best regards
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
Quote:
Originally Posted by
dbrmik
I've read through this thread, and unless I'm missed something my setup should be OK. I am running qt4.4.3 and qwt5.1.1 on windows xp. However my setup is suffering from the same problem
Everything is wrong with your setup: it's a Qt 4.4 bug fixed in Qt 4.5 and you need Qwt 5.2 from SVN (will be released the next days) because 5.1.1 is incompatible with Qt 4.5.
Uwe
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
This problem seems to reoccur with
Qt 4.6.2
OS (Windows 7 Professional)
Microsoft Visual Studio 2008
Qwt v 5.2
Can some one confirm it.
Re: Complicated QwtPlotZoomer crash, possible bug? Help request.
No this has to be a different one. Start your debugger, check where your application is crashing and post a bug report with more informations in a new thread.
Uwe