home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!eurologic.fido.de!Martin_Schloeter
- Date: Tue, 1 Sep 92 12:30:21 +0200
- From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
- Subject: Re: Windows == OS
- Message-ID: <19953096@p3.f67.n245.z2.fidonet.org>
- Newsgroups: comp.os.ms-windows.misc
- X-Comment-To: (Name)
- Organization: Die ersten 100.000 Jahre...
- Lines: 42
-
- N > > N > Execuse me!!!! Windows WILL NOT touch your malloc memory blocks,
- N > > N > and it will sort of juggle with your memory only with near
- N > pointers and
- N > > N > that is also only because you got the same DS value; that is it
- N > does
- N > > N > not play with your memory blocks in relation to your malloc calls,
- N > it
- N > > N > will move your WHOLE program by changing the base address.
- N > Compile
- N > > N > in the compact or huge models where everything is far and windows
- N > will
- N > > N > die a horrible death if it tried to play with it.
- N > > N >
- N > > You are definitly wrong.
- N > > Don't mix it up. You description is only correct for static data in the
- N > apps
- N > >default data segment(s) and data allocated with the default malloc
- N > (identica
- N > >lly
- N > > with
- N > > LocalAlloc-LocalLock) in the Local Heap (which is inside the default
- N > data
- N > > segment(s)).
- N > Yes, this is what I ment. Windows will move the segments not my
- N > blocks.
- Again, that only one special case of the Windows memory management. But in ALL
- cases (see following) Windows will move memory blocks without breaking the
- pointers.
- N >
- N > > Even this problem is better managed with Win 3.1 then with 3.0 (no
- N > > more sandbank effekt with such memory).
- N > > Memory
- N > > allocated with GlobalAlloc-Global lock (also far pointers) is
- N > > perfectly
- N > > juggled by windows.
- N > > Simply write an app which uses such call, start heapwalker and make
- N > some
- N > >
- N > > intensive things and you will see your memory blocks juggling around.
- That's the pure truth, not my personal meaning!
-
- Martin
-