DelphiFAQ Home Search:

Share memory among several instances of a DLL

 

comments1 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.

The DB unit in the 32-bit version has some examples of how it's done in general.

Basically, in 32-bit mode a DLL is mapped into each process's address space, not an
address space of its own, so that it cannot share memory simply by virtue of being a DLL.
You must use some kind of shared memory object -- such as shared memory, or a
memory-mapped file -- and employ semaphores to properly synchronize access to it.

Comments:

2006-07-11, 04:15:22
anonymous from Russian Federation  
rating
Wish there was some more info or related links

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: