Peter Ganten <[EMAIL PROTECTED]> writes:
> if you start this exe twice within one minute, you will see, that
> the pages appear commited in the second process two (at least on
> win95)
It works the same under NT, so we definitely have to address this
issue.
> 3. ssapp.tgz: tar archiv containing source and binaries for a cuiexe,
> consisting of an exe and a dll with a shared section. When the dll
> is initialized the first time, it creates an shared heap and stores
> a string there. The exe loads the dll and calls a function, with
> displays the string. Under win95 it will be displayed after every
> invocation. Furthermore you can use a debugger to see the string
> in the address spaces of all other processes.
As expected, this one crashes under NT when trying to access the
string, because the heap is not accessible from the second process.
> > Anyway it should be possible to ignore SEC_RESERVE in this case and
> > commit everything at once.
>
> That would mean in every case, because we don't no if another app will
> map the same object :-(
In every case of file mappings yes. We can still do reserve/commit
properly for memory allocated through VirtualAlloc.
> Also it might be possible, that some app is
> expecting exceptions, if it access not commited memory?
Quite unlikely IMO, but of course everything is possible with Windows
apps...
--
Alexandre Julliard
[EMAIL PROTECTED]