|
![](/i/fill.gif) |
On Fri, 05 Mar 1999 00:09:58 -0700, Ryan Hagelstrom
<rlh### [at] silver sdsmt edu> wrote:
>#pragma data_seg ("shared")
This isn't enough. You also need linker options, which you may or may
not have set. The option you need is
/section:shared,RWS
If you're using VC6, just type this at the end of the editbox at the bottom
of the link tab in the project settings dialog. Remember to do it for both
debug and release.
Just giving a segment the name "shared" doesn't automatically make it shared. :)
Also, make sure that your shared data does not reference anything outside the
shared segment. That is, no pointers to unshared data.
Post a reply to this message
|
![](/i/fill.gif) |