🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.algorithms
Article #38

Re: IJG JPEG Engine and Win32

#38
From: Robert Mashlan
Date: Mon, 29 Jan 1996 23:53
37 lines
2193 bytes
fortunat@interpath.com (Jumpstile Turner) wrote:


>>Are you sure that GlobalAlloc doesn't wind up calling
>>
>
>  You didnt finish this line.  I assume you mean GlobalAlloc doesn't 
>wind up calling HeapAlloc?  As far as I understand GlobalAlloc still 
>calls 16-bit memory rather than 32-bit memory.  I could be wrong, but 
>in one of my Win32 books floating around here it states that Win95 
>Explorer still uses GlobalAlloc to allocate memory for "Drag and Drop" 
>data structures and that this is 16-bit RAM it is allocating.  It also 
>states that GlobalAlloc is much slower than using HeapAlloc or 
>VirtualAlloc.  I haven't tested this much, but it sure SEEMS slower 
>when I switch HeapAlloc calls to GlobalAlloc.  Although this might be 
>the power of suggestion. :)  However I've read this in more than one 
>place so I'd just assume it was correct.

In Win32, GlobalAlloc and LocalAlloc are the same function.  They
allocate memory from the process' 32-bit heap.  There is a difference
between HeapAlloc for backard compatibility in that LMEM_MOVEABLE
allocated handles are doubly indirect pointers (void **) to the
memory.

See Peitrek's "Windows 95 Programming Secrets" for more info.

rm





---
Robert Mashlan | R2M Software
rmashlan@r2m.com http://www.transport.com/~rmashlan
Internet Resources for Windows Developers
http://www.r2m.com/windev/
Technical Details
Message-ID: <310d5a9f.41441673@news.transport.com>
Path: arc1-ca.pugleaf.net!news.transport.com!usenet
References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan5065424@netcom21.netcom.com> <4cpn1r$gm0@redstone.interpath.net> <4crai5$ear@hades.rz.uni-sb.de> <4d11tg$56q@redstone.interpath.net> <310110c0.44581633@news.connectnet.com> <4dt42n$pu3@redstone.interpath.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.transport.com!usenet
From: rmashlan@r2m.com (Robert Mashlan)
Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
Subject: Re: IJG JPEG Engine and Win32
Date: Mon, 29 Jan 1996 23:53:40 GMT
Organization: R2M Software Company
Message-ID: <310d5a9f.41441673@news.transport.com>
References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan5065424@netcom21.netcom.com> <4cpn1r$gm0@redstone.interpath.net> <4crai5$ear@hades.rz.uni-sb.de> <4d11tg$56q@redstone.interpath.net> <310110c0.44581633@news.connectnet.com> <4dt42n$pu3@redstone.interpath.net>
NNTP-Posting-Host: sea13.seasurf.com
X-Newsreader: Forte Agent .99c/16.141