Path: 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 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