Displaying 1 result from an estimated 1 matches for "uattachmentcount".
Did you mean:
attachment_count
2001 Apr 10
3
DLL at fixed location and memory sharing between executables
...r WINE? (i.e. to get two
executables to share global memory as they do under windows)
We have a DLL that is at a specified memory location.
At the top of the code a variable is declared as follows:
#pragma data_seg( "global_mem" )
#pragma bss_seg( "global_mem" )
unsigned uAttachmentCount = 0;
Now..
The main program links to that DLL and as part of the DllMain it increments
that count.
The main program executes another program. That other program also links
to that DLL.
Under Windows the DLL is loaded into a single space in memory and the
second executable increments the variable...