Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Heap Allocation error when use MSVCRT.DLL (6.00.8797) Pin
Joaquín M López Muñoz10-Mar-02 12:36
Joaquín M López Muñoz10-Mar-02 12:36 
GeneralQUESTION ABOUT TIFFS WITH MFC Pin
jafrazee10-Mar-02 11:48
jafrazee10-Mar-02 11:48 
GeneralMAPI and AOL 7.0 Pin
Dave_10-Mar-02 10:11
Dave_10-Mar-02 10:11 
GeneralXP Style progress dialog Pin
10-Mar-02 9:35
suss10-Mar-02 9:35 
GeneralRe: XP Style progress dialog Pin
Joaquín M López Muñoz10-Mar-02 11:52
Joaquín M López Muñoz10-Mar-02 11:52 
GeneralRe: XP Style progress dialog Pin
Ravi Bhavnani10-Mar-02 12:33
professionalRavi Bhavnani10-Mar-02 12:33 
Generaldesign pattern problem Pin
10-Mar-02 9:33
suss10-Mar-02 9:33 
GeneralRe: design pattern problem Pin
Paul M Watt10-Mar-02 9:53
mentorPaul M Watt10-Mar-02 9:53 
Do you have multiple observers that are trying to delete the object from step two, or do the other observers simply react to the notification?

If you have multiple observers, I would add reference counting to the managed object of step two, and each observer that observes this object will increment the count. Then when it gets the notification to stop observing, it will 'release' its reference count.

In your managed object of step two, when all of the references are released, then it will delete itself with delete this, or what ever other mechanism you have set up.
GeneralRe: design pattern problem Pin
10-Mar-02 18:07
suss10-Mar-02 18:07 
GeneralRe: design pattern problem Pin
10-Mar-02 10:07
suss10-Mar-02 10:07 
GeneralRe: design pattern problem Pin
10-Mar-02 18:08
suss10-Mar-02 18:08 
GeneralRe: design pattern problem Pin
Ravi Bhavnani10-Mar-02 10:43
professionalRavi Bhavnani10-Mar-02 10:43 
GeneralRe: design pattern problem Pin
10-Mar-02 18:12
suss10-Mar-02 18:12 
GeneralRe: design pattern problem Pin
10-Mar-02 18:13
suss10-Mar-02 18:13 
GeneralRe: design pattern problem Pin
Joaquín M López Muñoz10-Mar-02 10:58
Joaquín M López Muñoz10-Mar-02 10:58 
Generalstarting a thread Pin
10-Mar-02 9:31
suss10-Mar-02 9:31 
GeneralRe: starting a thread Pin
Paul M Watt10-Mar-02 9:55
mentorPaul M Watt10-Mar-02 9:55 
GeneralRe: starting a thread Pin
10-Mar-02 10:45
suss10-Mar-02 10:45 
GeneralRe: starting a thread Pin
Paul M Watt10-Mar-02 18:49
mentorPaul M Watt10-Mar-02 18:49 
GeneralMember var/func deletion Pin
Travis D. Mathison10-Mar-02 8:14
Travis D. Mathison10-Mar-02 8:14 
GeneralRe: Member var/func deletion Pin
Joaquín M López Muñoz10-Mar-02 8:33
Joaquín M López Muñoz10-Mar-02 8:33 
GeneralRe: Member var/func deletion Pin
Travis D. Mathison10-Mar-02 8:31
Travis D. Mathison10-Mar-02 8:31 
GeneralRe: Member var/func deletion Pin
Joaquín M López Muñoz10-Mar-02 8:41
Joaquín M López Muñoz10-Mar-02 8:41 
GeneralRe: Member var/func deletion Pin
Michael Dunn10-Mar-02 19:51
sitebuilderMichael Dunn10-Mar-02 19:51 
GeneralTab View Pin
10-Mar-02 7:29
suss10-Mar-02 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.