Always refresh the same variable. TTripleBufferedDataIntBuffer;...int*MyCopy=IntBuffer.ExchangeConsumerBuffer();intX=*MyCopy;//OkMyCopy=IntBuffer.ExchangeConsumerBuffer();//MemholdingXreturnedtoproducerthread.intY=*MyCopy;//Ok