Re: What MFC Objects Can't be created on the Stack?



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" <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

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages