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

C / C++ / MFC

 
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 
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 
All is well, but it doesn't change the fact that it still does't break the notifications loop.
Think of this as the flow of events:
1. Subject starts it's notification loop
2. it reaches my observer is the list of observers and notifies it
3. the observer then notifies the singleton needs to be deleted
4. the object is deleted
5. the function (in the singleton and in the observer) returns and the next thing to do is for the subject to continue it's notification loop on to the next observer on the list, but then the program crashes on access violation since the memory space the subject has occupied is not longer allocated since it was deleted / has deleted itself.

Please try something else.
Thanks,
Lior.
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 
GeneralRe: Tab View Pin
Michael Dunn10-Mar-02 8:04
sitebuilderMichael Dunn10-Mar-02 8:04 
GeneralBitmaps Pin
10-Mar-02 7:25
suss10-Mar-02 7:25 
GeneralRe: Bitmaps Pin
Paul M Watt10-Mar-02 7:57
mentorPaul M Watt10-Mar-02 7:57 
Generalcommunicate with activex control Pin
10-Mar-02 6:27
suss10-Mar-02 6:27 
GeneralRe: communicate with activex control Pin
Derek Waters10-Mar-02 11:36
Derek Waters10-Mar-02 11:36 

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.