Date: Sun, 17 Nov 1996 09:57:00 +0200 (IST) From: Eli Zaretskii To: Jaroslav Kamenik Cc: djgpp AT delorie DOT com Subject: Re: DPMI + VESA problem In-Reply-To: <56hksh$d4e$1@ns.felk.cvut.cz> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 15 Nov 1996, Jaroslav Kamenik wrote: > My code which plays with VESA functions hung at exit. [snip] > r.x.ax = 0x4f00; > r.x.es = BufDosSeg; > r.x.di = 0x0000; > __dpmi_simulate_real_mode_interrupt(0x10,&r); You should always zero-out the r.x.ss, r.x.sp and r.x.flags before calling the interrupt-simulation function (it's in the FAQ, btw). Better still, use the `__dpmi_int' function which does that for you. And btw, you don't have to allocate and deallocate DOS buffer all the time. You can just use the transfer buffer which is already allocated for you. This is also in the FAQ (section 18.2), seems you should browse chapter 18 of the FAQ.