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

List:       kde-devel
Subject:    Re: Memory question
From:       Uwe Thiem <uwe () uwix ! alt ! na>
Date:       1999-08-02 8:29:57
[Download RAW message or body]

On Sun, 1 Aug 1999, Herwin Jan Steehouwer wrote:

> I have a little memory question, when i make Dialogs or TabDialog etc,
> they are closed with accept(), but that is not removing the dialog.
> 
> How can i be shure the dialog is removed from memory, because the memory
> is increasing every time i open a window !?

There is someplace in your program where you create the dialog with "new"
and then call yourDialog->exec(). When that call returns you delete
the dialog with ... well ... "delete". ;-)

Uwe

-------------------------------------------------------------------------
Uwe Thiem                                        Tel: +264 - 061 - 244511
P.O.Box 30955                                    Fax: +264 - 061 - 244511
Windhoek                                         Email:   uwe@uwix.alt.na
Republic of Namibia                                           uwe@kde.org
                                                       http://www.kde.org
                  **********************************
         You can still escape from the GATES of hell: Use KDE!
-------------------------------------------------------------------------

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

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