Date: Thu, 26 Mar 1998 17:57:14 -0800 (PST) Message-Id: <199803270157.RAA02214@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "MNR. LE SMITH" <9813152 AT fharga DOT sun DOT ac DOT za>, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: why does dosgetmem only work with static / global variables Precedence: bulk At 05:03 3/25/1998 +0200, MNR. LE SMITH wrote: >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 !? Can you post an example? There shouldn't be any reason for it not to work with an auto array. Nate Eldredge eldredge AT ap DOT net