Thanks a lot, Alpha and Itachna!

Well, because these are modeless dialogs, I coded something like :
Code:
delete this;
inside the virtual funtion PostNcDestroy() windows message handler.

Is this enough? Or do I need to delete them inside a loop which u mention, Alpha? Thanks a lot!

Also, Itachna.......of course I'm kidding, k? I'm one of those folks who behave as though I'm the Lord, even though I know darn well I'm not. This is what is termed by, "Behaving like a big-headed guy when u're really humble inside, to amuse folks".

That's the morale of the story. Need I say more?