From: "MNR. LE SMITH" <9813152 AT fharga DOT sun DOT ac DOT za> Organization: Stellenbosch University To: djgpp AT delorie DOT com Date: Wed, 25 Mar 1998 17:03:00 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: why does dosgetmem only work with static / global variables Message-ID: <92ACC242FE@fharga.sun.ac.za> Precedence: bulk i recently tried to copy a text string out of conventional memory (i.e. i had its segment & offset) into a local char array. i used dosgetmem() as described in the documentation, ( phys_addr = 16*segment + offset etc..) however, it only filled my char array with garbage, but when i changed the variable to 'static char..' it worked ! i wonder if anyone can tell me what happened there !? Lou Smith ( student ) ( iBasdvru, South Africa ) p.s. how do newsgroups work ( excuse my ignorance .. )