> In other words, am I trying to use it before I can guarantee that
> all global
> objects / structures are ready?
>
> If so, then this is probably the root of my problem and I have to rethink
> the strategy.

Well, I originally declared the structure globally because I needed to
access it from a static method of the same class that spawns the thread, but
I realised that that method didn't need to be static; so I changed that and
made the structure a member of the class instead, and thus guarantee that it
is allocated in memory before the thread is spawned, and it no longer
violates. Since this is now the only CCriticalSection declared in the code,
I believe I have got it right this time?

--
Jason Teagle
[EMAIL PROTECTED]




Reply via email to