I am trying to be the hero for my company here and so I am hoping that one of you guys will actually be the hero but that I can take the credit . Anyway, I was informed that our company just recently upgraded to the latest version of AIX - I think they went from 4.3 to 5.0. Our C applications that were using shared memory with malloc's no longer work (bad thing to do in the first place if you ask me but I didn't write it - thank God). Anyway I vaguely remember reading something about volatile if you want to do something like this - is that correct or what is volatile for? Is it for ensuring that the compiler won't perform any optimizations on the volatile variable? Do you think this is what we need to use now for the shared memory or how should this problem be fixed?
Sorry but no code to provide at this point. Lastly, the main program which was defined as int main(void) and has a return(0); in it no longer works but causes the system to crap. Any ideas on all of this stuff would be greatly appreciated. Does main need to now return a larger type because of the 64 bit machine? Maybe return((long)0)?