site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jan 11, 2007, at 12:02 PM, darwin-dev-request@lists.apple.com wrote: Why not? I want implementation of #pragma data_seg("shared") Int nGlobal = 5; #pragma data_seg() on MAC OSX. It works properly on vc if I place the above code in DLL..Different copy of executable access the same memory. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I do not want to use shared memory like shmget, mmap or something. Actually I can set and get nGlobal from different process.Same implementation I want on MAC, is it possible? Yes; use any of the various forms of shared memory that are available to you. I don't understand why you say you "don't want to use shared memory", when your example is using shared memroy. I also note that you make no mention of how you propose to synchronise access to this variable, and I further note that you haven't marked it 'volatile' either. This email sent to site_archiver@lists.apple.com