[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Updates to gr-qtgui

From: Josh Blum
Subject: Re: [Discuss-gnuradio] Updates to gr-qtgui
Date: Wed, 13 Apr 2011 22:21:36 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

> Without getting to deep into this, the problem is in the shared
> responsibilities between the Python world and the C++ world. I don't
> completely understand the series of events, but the crux o the problem seems
> to be who gets to the destructors first.

its never easy is it...

> In the case of your program, it's the self._qtgui_sink_x_0_win object that's
> the problem. If you don't make it a member of the class, that is, drop the
> "self." part, it _should_ work fine. My understanding, which could be wrong,
> is that as a local variable, it gets destroyed in the right order.

I removed the "self." and still seeing the same results.

But, you gave me an idea that there might be this unhappy deconstructor
race condition. So, I tried deleting the qapp after exec() and that made
it better. Also and rather, stopping the top block make it better; so
maybe it was getting data to draw and somebody already destroyed the qt
graphics stuff.

So, the reason I didnt stop the top block:

I will give this a more conclusive test tomorrow, but the fix seems
worth while anyhow.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]