From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Calling Software interrupts Date: Tue, 08 Sep 1998 19:41:31 -0300 Organization: NBTel Internet Lines: 20 Message-ID: <35F5B29B.168CF647@unb.ca> References: <905271833 DOT 2795 DOT 0 DOT nnrp-05 DOT d4e48d0d AT news DOT demon DOT co DOT uk> NNTP-Posting-Host: fctnts09c02.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nick Bull wrote: > I think this is where the problem is. I've removed the "char far *buf" from > the arguments and the "far" from the structure, but I think I'm running into > problems here. The function should call an interrupt in the MSCDEX driver > that fills buf with data. All of my other interrupt calls are working OK, > but they don't fill any memory with information. Can anyone help ? What am > I doing wrong ? > > buf is allocated using a malloc, and I know my calling procedure for the > interrupt works (copies the command block to dos memory and calls using > __dpmi_interrupt). Help ! You need to use DOS memory, not malloc to get your buffer. You need to then pass the Seg:Offset to the driver. Not the 32-bit version. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca