🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1171

Huge global memory allocations

#1171
From: Donald Doherty
Date: Tue, 29 Jan 1991 20:35
19 lines
1025 bytes
	I need to allocate at least three segments (~180k) of type
int to global memory.  This I have done using

	int huge *lpGlobalMemory;
	.
	hGlobalMemory = GlobalAlloc (GMEM_MOVEABLE, ~180k);

as suggested in Petzold.
	This works fine only as long as I use 64k or less of the space!
If I enter > 64k of data the system crashes with a runtime error.
Has anyone had any similar experiences?  Any suggestions that might help
me through this painfull adolescence in my Windows memory management
experience?

Thank-you!

Don D.
ddoherty@ICS.uci.edu
Technical Details
Message-ID: <27A5DC96.4539@ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!julius.cs.uiuc.edu!usc!orion.oac.uci.edu!ucivax!ddoherty

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!julius.cs.uiuc.edu!usc!orion.oac.uci.edu!ucivax!ddoherty
From: ddoherty@ics.uci.edu (Donald Doherty)
Newsgroups: comp.windows.ms.programmer
Subject: Huge global memory allocations
Keywords: huge global memory GlobalAlloc
Message-ID: <27A5DC96.4539@ics.uci.edu>
Date: 29 Jan 91 20:35:34 GMT
Sender: ddoherty@ics.uci.edu (Donald Doherty)
Organization: UC Irvine Department of ICS
Lines: 19