[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KTMainWindow problems
From:       Sven Radej <sven () lisa ! exp ! univie ! ac ! at>
Date:       2000-02-07 9:37:34
[Download RAW message or body]

On Mon, 07 Feb 2000, Alexander Feigl wrote:
>At Mon, 07 Feb 2000 Harri Porten wrote:
>> Alexander Feigl wrote:
>> > 
>> > Hi!
>> > 
>> > I recently ported my app to KTMainWindow at I get SEGV when closing the main
>> > window.  Does anybody have an idea what causes the SEGV?
>> 
>> IIRC someone suffered from a similar problem recently (coolo?). Do you
>> create KTMainWindow on the stack or the heap ? I'd suggest new'ing it.
>> 
>
>Thanks. It helped. I don't know why, but the SEGV is gone now :) . If this
>behavior cannot be avoided , I'd suggest some "warning" in the header file. It
>took me some hours and it might be a common "mistake"

You cannot delete something that isnīt created with new. Unfortunately there is
no way to tell compiler that "non newed" KTM is an error. And KTM cannot know
is it on the heap or on stack.
 -- 
Sven Radej      radej@kde.org
KDE developer   Visit http://www.kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic