home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / ms / programm / 7337 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!agate!diva.Berkeley.EDU!bchen
  2. From: bchen@diva.Berkeley.EDU (Benjamin Chen)
  3. Newsgroups: comp.windows.ms.programmer
  4. Subject: Followup to Using Bitmap Buttons
  5. Date: 24 Jul 1992 00:18:10 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 17
  8. Distribution: usa
  9. Message-ID: <14ni82INN24p@agate.berkeley.edu>
  10. NNTP-Posting-Host: diva.berkeley.edu
  11.  
  12. On the advice of an MFC authour, I removed my explicit calls to delete
  13. the bitmaps and IT WORKS!  I don't know what could have happened,
  14. but I'm positive I saw the symptoms.  It's likely that I first forgot
  15. to call the destructor for the object that contains the bitmap buttons,
  16. (which was allocated with new, not on the stack) ran the program, examined
  17. the heap, added the destructor call, ran the program again WITHOUT restarting
  18. Windows, and thought that it didn't fix the problem. (Hope you
  19. understood that :-)).  Anyway, the problem was mine, not theirs.
  20.  
  21.  
  22.     BC
  23.  
  24. -- 
  25. Benjamin Chen
  26. Office:   550-A4 Cory Hall, 2-4332
  27. UUCP:     !ucbvax!cad!bchen               
  28. HEPNET:   LBL::"bchen@cad.Berkeley.EDU"
  29.