Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jul : Expand MapFile Size

www.cryer.info
Managed Newsgroup Archive

Expand MapFile Size

Subject:Expand MapFile Size
Posted by:"Daniel" (dani..@borland.com)
Date:Tue, 11 Jul 2006 11:29:55

Hi,

    In host application. I created a Map File with a smaller size at first,
load data from a file without problem.
    Then I re-created the Map File with the same name but bigger size, load
data from another bigger file without problem, too.

    But, once another application(client app.) get the copy from that host
Map File with "FILE_MAP_COPY"....

    hMapFile := OpenFileMapping(FILE_MAP_COPY, False,
pAnsiChar(sMemoryName));


    Back in Host application, when I again re-create a bigger MapFile, load
in a bigger file, it shows "Access Violation", seems that I can't access new
expaneded memory once it was shared by "FILE_MAP_COPY" by another
application.

    Is the copied Map File will restrict the original host map file size?
How can I solve this problem?

Thanks,

Daniel

Replies:

www.cryer.info
Managed Newsgroup Archive