For Programmers: Free Programming Magazines  


Home > Archive > VC Language > June 2005 > System Class initialization complete?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author System Class initialization complete?
Ragdoll

2005-06-06, 4:02 pm

Hi,

I have a class that has an initialization thread spun up by a static member.
I don't want this thread to run until *all* the classes are done
initializing. How can I tell when all the classes (mine and MFC's) are done
initializing and it's safe to start creating instances of my classes?

Thanks...
Victor Bazarov

2005-06-06, 4:02 pm

Ragdoll wrote:
> I have a class that has an initialization thread spun up by a static member.
> I don't want this thread to run until *all* the classes are done
> initializing. How can I tell when all the classes (mine and MFC's) are done
> initializing and it's safe to start creating instances of my classes?


I always thought that the first call to 'OnIdle' (in MFC terms) is the
right point to do that sort of processing.

V
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com