Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Apr : Memory mapped file in DLL

www.cryer.info
Managed Newsgroup Archive

Memory mapped file in DLL

Subject:Memory mapped file in DLL
Posted by:"Craig Hammon" (firebirdwebg..@hotmail.com)
Date:Mon, 14 Apr 2008 03:02:40 -0600

Hi,
Ive got a memory mapped file in memory..
It gets created when the DLL loads (Using initialize in a separate unit)

It seems to be working fine, at least I think..

I have a question though..

I have no control over the app that calls the DLL. I dont have the source or
control..
Im using the Memorymap to put an integer into memory, sort of a cookie..
etc..
The next call looks at it to see what the value is then the DLL unloads
etc..

1. Im assuming that if the DLL creates the memory map, but never destroys
it.. It will last  until the Calling process terminates? Right?
2. I wanting this to be the case. I want the value to stay there till the
next time the DLL is loaded.. It seems to stay till the calling process
terminates.. but not absolutly sure..
3. Im also protecting the value using a critical section..

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive