Where does file_memory comes from? Does it have a correct value? How did you initialize the area that file_memory points to? What is the value of infoVar->oAndS_str? Are there any other programs that use that shared memory?