home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!rpi!bu.edu!jade.tufts.edu!news.tufts.edu!news.tufts.edu!tguez
- From: tguez@jade.tufts.edu (Name)
- Newsgroups: comp.os.ms-windows.misc
- Subject: Re: Windows == OS
- Message-ID: <TGUEZ.92Aug30234410@jade.tufts.edu>
- Date: 31 Aug 92 03:54:17 GMT
- References: <197a1eed@p3.f67.n245.z2.fidonet.org>
- Sender: news@news.tufts.edu (USENET News System)
- Organization: Tufts University - Medford, MA
- Lines: 38
- In-Reply-To: Martin_Schloeter@eurologic.fido.de's message of 28 Aug 92 07:59:52 GMT
-
- > N > Execuse me!!!! Windows WILL NOT touch your malloc memory blocks,
- > N > and it will sort of juggle with your memory only with near pointers and
- > N > that is also only because you got the same DS value; that is it does
- > N > not play with your memory blocks in relation to your malloc calls, it
- > N > will move your WHOLE program by changing the base address. Compile
- > N > in the compact or huge models where everything is far and windows will
- > N > die a horrible death if it tried to play with it.
- > N >
- > You are definitly wrong.
- > Don't mix it up. You description is only correct for static data in the apps
- >default data segment(s) and data allocated with the default malloc (identica
- >lly
- > with
- > LocalAlloc-LocalLock) in the Local Heap (which is inside the default data
- > segment(s)).
- Yes, this is what I ment. Windows will move the segments not my
- blocks.
-
- > Even this problem is better managed with Win 3.1 then with 3.0 (no
- > more sandbank effekt with such memory).
- > Memory
- > allocated with GlobalAlloc-Global lock (also far pointers) is
- > perfectly
- > juggled by windows.
- > Simply write an app which uses such call, start heapwalker and make some
- >
- > intensive things and you will see your memory blocks juggling around.
- > And to say it again. Is not aspect of the system design, that malloc of th
- > C-Library is translated to LOCALAlloc-LOCALLock, that a decision of the
- > compiler factorer. You can make simply a new malloc which works in
- > t
- The compiler is involved and I explained the consquences in a previous
- post to this one (where you commented your #define statment, I think).
- So there is no need for me to repeat.
- > he Global
- > Heap (with real juggling and so on).
- >
- > Martin
-