Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!world!decwrl!petunia!news From: pdavid@polyslo.CalPoly.EDU (Paul C. David) Newsgroups: comp.windows.ms Subject: Re: Pass a Handle or Address Keywords: memory Message-ID: <26f4158d.3d1d@petunia.CalPoly.EDU> Date: 17 Sep 90 00:15:09 GMT References: <20328@well.sf.ca.us> Distribution: na Organization: Cal Poly State University SLO Lines: 21 al@well.sf.ca.us (Alfred Fontes) would have us believe: > >Do any of you experts out there have any ideas about this? When is it >better to pass a handle, and when is it better to pass an address? It's alwasy better to allow Windows to do what memory management it will. The way to do this is to have the memory locked down only when you need it to be, meaning just pass the handles. Unless it is necessary to manipulate the contents of the memory both inside and outside of the methods in question (which is poor design anyway). -- Paul C. David pdavid@polyslo.CalPoly.EDU California Polytechic State University, San Luis Obispo Home of the six year or 60,000 mile undergrad degree