Re: Virtual Address Space

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat and Bernie,
  Thanks for the input...

  Kat:
    dont be quiet, please! Your input is appreciated.
    As far as mem management goes, Windows managages
    memory on a per process basis, i.e. the following
    functions work with the current process only:

    GlobalAlloc, LocalAlloc, HeapAlloc, VirtualAlloc

    and, shared memory is implemented by file mapping
    in the Win32 API.

    Also, i need more memory then that in low dos mem, typically
    3 megs up to, say, 10 megs but i hate to put a limit on that
    size.

    The strange thing is, peek(addr) doesnt generate an error
    even though another program had allocated that 'space',
    yet returns whatever the heck its getting from who
    knows where  smile


  Bernie:
    I actually did just that, but i did it on a temporary basis
    as i would like to free up the clipboard for normal use, and
    achieve this without having to maintain a copy of the clipboard
    data (and reload it after use) as the amount of data that
    can be found on the clipboard can easily exceed 10 megs
    and therefor would require too much overhead time to manage
    time sharing the clipboard.

  I was hoping someone had another way to share memory, but it
  looks like file mapping is the only real way to go.

Thanks again for all your generous input. Any more thoughts
please dont hesitate to voice them here...

--Al

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu