Article View: comp.windows.ms.programmer
Article #47Followup to Using Bitmap Buttons
From: Benjamin Chen
Date: Fri, 24 Jul 1992 00:18
Date: Fri, 24 Jul 1992 00:18
17 lines
1115 bytes
1115 bytes
On the advice of an MFC authour, I removed my explicit calls to delete
the bitmaps and IT WORKS! I don't know what could have happened,
but I'm positive I saw the symptoms. It's likely that I first forgot
to call the destructor for the object that contains the bitmap buttons,
(which was allocated with new, not on the stack) ran the program, examined
the heap, added the destructor call, ran the program again WITHOUT restarting
Windows, and thought that it didn't fix the problem. (Hope you
understood that :-)). Anyway, the problem was mine, not theirs.
BC
--
Benjamin Chen
Office: 550-A4 Cory Hall, 2-4332
UUCP: !ucbvax!cad!bchen
HEPNET: LBL::"bchen@cad.Berkeley.EDU"
Technical Details
Message-ID:
<14ni82INN24p@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!diva.Berkeley.EDU!bchenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!diva.Berkeley.EDU!bchen From: bchen@diva.Berkeley.EDU (Benjamin Chen) Newsgroups: comp.windows.ms.programmer Subject: Followup to Using Bitmap Buttons Date: 24 Jul 1992 00:18:10 GMT Organization: University of California, Berkeley Lines: 17 Distribution: usa Message-ID: <14ni82INN24p@agate.berkeley.edu> NNTP-Posting-Host: diva.berkeley.edu