Hi,

I have some procedures which all are searching and modifying an array. My program can be called at the same time by more than one person, so i have to prevent that all users are working in that array at the same time.

is it possible to solve this with following code in each procedure which uses this array?

{
CCriticalSection cs;

cs.Lock()

// my code

cs.Unlock()
}

I hope u can help me.

Thanx in advance.