From: nikki AT gameboutique DOT co (nikki) Newsgroups: comp.os.msdos.djgpp Subject: Re: real mode calls pmode Date: 24 Feb 1997 13:43:13 GMT Organization: GameBoutique Ltd. Lines: 31 Message-ID: <5es5th$hnj@flex.uunet.pipex.com> References: NNTP-Posting-Host: www.gameboutique.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp >> _go32_dpmi_allocate_real_mode_callback_retf(&callback_info,&callback_regs); > > Did you try to use _go32_dpmi_allocate_real_mode_callback_iret? If not, > try it. tried but didn't work at all. the help file does say the retf version can be used with packet drivers so seems to be right. >> void receiver() > > This should be "void receiver (__dpmi_regs *r)". ok, i changed this but it made no difference sadly :( i thought callback_regs was global and therefore you wouldn't need to pass *r like this? i put callback_regs.x.di=0 and callback_regs.x.es=0 in this function too to see if that would help, as the documents say that when called this function should return a buffer to put the packet in and setting to 0 discards the packet. but that didn't help in the slightest and still gave me the error :( > If nothing above helps, post the exact message(s) printed when it > crashes. hang on, i better go back to dos :) brb.. -- Graham Tootell nikki AT gameboutique DOT com