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

List:       kde-devel
Subject:    Re: KTMainWindow problems
From:       "Ingo Ralf Blum" <ingoralfblum () ingoralfblum ! com>
Date:       2000-02-09 14:06:31
[Download RAW message or body]

> > Hmm, isn't it possible to override the new operator instead? I mean, C++
> > has a name for create - this isn't Delphi :)
> 
> How would that stop you creating the object on the stack ?

Hello,

you can create a static list and every new (of KTMainWindow) inserts some data about
the allocated memory into the list. So you can check in the constructor of KTMainWindow
if this (the this pointer) is inside the allocated memory objects.

Ingo

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

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