Re: What MFC Objects Can't be created on the Stack?
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 08 Aug 2006 21:59:07 -0400
Neither does any other Win32 app. All handles are deleted when a program exits. Or is
there counterevidence to this?
joe
On Tue, 8 Aug 2006 11:40:58 -0700, "Tom Serface" <tserface@xxxxxxx> wrote:
Hi Joe,Joseph M. Newcomer [MVP]
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:4tkhd2hvgdl4e4snij3unckukkdse2ccht@xxxxxxxxxx
By the way, .NET doesn't handle this either. In .NET, you can still
create 20 fonts when
you meant to have only 1. Not even .NET can tell that you intended to
have only 1 font
but didn't know what you were doing.
joe
No, but from what I've seen it doesn't leave them allocated after the
program exits either.
Tom
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Re: What MFC Objects Can't be created on the Stack?
- From: Joseph M . Newcomer
- Re: What MFC Objects Can't be created on the Stack?
- From: Peter Olcott
- Re: What MFC Objects Can't be created on the Stack?
- From: Joseph M . Newcomer
- Re: What MFC Objects Can't be created on the Stack?
- From: Peter Olcott
- Re: What MFC Objects Can't be created on the Stack?
- From: Joseph M . Newcomer
- Re: What MFC Objects Can't be created on the Stack?
- From: Tom Serface
- Re: What MFC Objects Can't be created on the Stack?
- Prev by Date: Re: What MFC Objects Can't be created on the Stack?
- Next by Date: MDI focus problem
- Previous by thread: Re: What MFC Objects Can't be created on the Stack?
- Next by thread: Re: What MFC Objects Can't be created on the Stack?
- Index(es):
Relevant Pages
|