When I get back to my computer then I will post some code. You say that the two processes accessing shared memory at the same time can cause error? That would be the most likely case because I implemented two functions, Lock( ) and Unlock( ).
The shared memory size is increased by an integer and that becomes a variable to say how many times the memory has been locked. The lock call was blocking by using a while loop to check if memory was locked. I had a small delay in the loop and I guess I ran into trouble when I brought the delay time down.
If you can make sense of that then it all seems to pan out. I'll put the code up as soon as just for peoples intrest.
Thanks
The shared memory size is increased by an integer and that becomes a variable to say how many times the memory has been locked. The lock call was blocking by using a while loop to check if memory was locked. I had a small delay in the loop and I guess I ran into trouble when I brought the delay time down.
If you can make sense of that then it all seems to pan out. I'll put the code up as soon as just for peoples intrest.
Thanks