[Kwintv] crash in QtVision::SetChannel

Dawit A. kwintv@mail.kde.org
Mon, 28 Oct 2002 00:48:09 -0500


On Sunday 27 October 2002 13:10, Rizsanyi Zsolt wrote:
> On Sunday 27 October 2002 01:54, Dawit A. wrote:
> I'm not that proficient in Qt programming yet... :)

No problem.  We all had to start out that way :)  Some of us even make 
mistakes even though we are more proficient at it :)

> > Actually, there isn't even a need for that right now even though it is
> > the most proper fix. The easiest thing to do for the current situtation
> > would be to simply null out the _ch pointer whenever _cs->clear() is
> > called.
>
> Hmm. I have not checked the code, but what happens when you delete a
> channel is channel editor. Is then the _chan reset ?
> I remember a crash when you opened the configure dialog, and exited with
> Cancel. And I think that it came from a similar problem...

I did not cause that problem, but I temporarly fixed it until a new solution 
could be found.  Even though the problems that arise from this are similar 
they are not actually the same thing.  In the previous case it is the pointer 
to the channel store that gets invalidated.

> Okay. Just then you should fix all the problems coming from this issue :)

Done.  Please update and try it again.  Now _chan is properly set to 0 
whenever the object we are pointing to gets deleted for whatever reason.

Regards,
Dawit A.