Re: thread crash...
Brought to you by:
rathmann
From: Marylene P. <mar...@ad...> - 2005-04-26 14:23:24
|
As I said, I have debugged my program. It crashes when I allocate an instance of QwtPlot. If I remove all=20 links to QwtPlot (anyway if I don't it crashes in the remaining ones),=20= my software works again. Are you still telling me that the problem doesn't come from Qwt ? :-??? I'm ready to believe it but it's harder to know where it comes from=20 then... In fact, the worse is that when the application crashes, the=20 QApplication object is already created ! :-s Any idea ??? Le 26 avr. 05, =E0 08:50, paul.floyd a =E9crit : >> Hello, >> >> my application worked perfectly fine until I enabled thread > support. >> Without changing anything else, this lead my software to > crash and say >> "QPaintDevice : Must construct a QApplication before a > QPaintDevice". >> This comes from the use of qwt. As soon as I remove any link > to the >> qwt-using classes, my software gets to work again. >> I only use QwtPlot inheriting classes. >> >> The first time I installed qwt I had disabled thread support > because I >> had compiled qt without. But since then, I have recompiled > qt with >> thread support. I forgot to recompile qwt with it, but as my > software >> didn't work, I did today, and unfortunately, it doesn't change >> anything. >> >> So, anybody has an idea why this happens and what I can do > against that >> ? > > Salut > > My guess is that this is a problem with a static or global > variable (or something like objects created in threads on > startup but before a QApplication has been created). > > If you have a debug version of the Qt library, try putting a > breakpoint on the line that contains the error, and look at > the stack to see what is being created that causes the problem. > > A+ > Paul > > > Acc=E9dez au courrier =E9lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34=80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn) > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real=20 > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > _______________________________________________ > qwt-interest mailing list > qwt...@li... > https://lists.sourceforge.net/lists/listinfo/qwt-interest > |