Date: Wed, 21 Nov 2001 20:20:22 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Andrew Fairburn" Message-Id: <4634-Wed21Nov2001202021+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <9tge0v$7ne$1@sirius.dur.ac.uk> (a.j.fairburn@durham.ac.uk) Subject: Re: HELP - dpmi_allocate_real_mode_callback References: <9tge0v$7ne$1 AT sirius DOT dur DOT ac DOT uk> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Andrew Fairburn" > Newsgroups: comp.os.msdos.djgpp > Date: Wed, 21 Nov 2001 14:37:14 -0000 > > if(__dpmi_allocate_real_mode_callback( rcv, &r, &realret) == -1) exit(32); > > rcv is the function trying to be called.... > > this return 0xfdbc for the segment address into the raddr struct......is teh > function executing wrong? What's wrong with 0xfdbc? As long as you get a number less than 0xffff, you shouldn't suspect a trouble. If your code crashes, it's possible that the reason for the crashes is something else. The DJGPP FAQ tells in section 12.2 how to begin debugging your problem using the crash message printed by the program when it dies.