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
Hoang Le10-Mar-02 12:20
Hoang Le10-Mar-02 12:20 
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 
Who can offer a design pattern to solve the following problem:
1. I have a class which is a singleton
2. this class manages a collection (map) of objects.
3. each object is a subject
4. I have another class who uses the singleton from step 1 which is an observer of the objects from step 2
5. in some point of the flow, an object from step two decided it is finished. it notifies it's observer from step 4.
6. the observer from step 4 performs some action based on the recieved notification and now it needs to delete the object that notified him that it was finished doing it's work, BUT (and here's the problem): it cannot delete it since the object from step 2 is in the middle of it's notification loop. the class from step 4 doesn't know if there are other observers and need not care about it. How can I break the notification loop and delete the object which sent the notification safly ?
Now, please don;t offer me to use a message loop or a message queue and a timer since it is out of the question for my current design.
Thanks.

Shoval Lior.
GeneralRe: design pattern problem Pin
Paul M Watt10-Mar-02 9:53
mentorPaul M Watt10-Mar-02 9:53 
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 

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.