From: adrian2 AT poboxes DOT com (Adrian Lopez) Newsgroups: comp.os.msdos.djgpp,rec.games.programmer Subject: Re: DJGPP help Date: Sun, 30 Mar 1997 18:27:37 GMT Organization: Two Cents Corporation Lines: 33 Message-ID: <5hn07k$9tu@ns1.doha.net> References: <3338FB32 DOT 32A78285 AT leonardo DOT math DOT unipd DOT it> <01bc3a0c$529d7280$520520ce AT coolio-s-server> NNTP-Posting-Host: caribe1-95.caribe.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <01bc3a0c$529d7280$520520ce AT coolio-s-server>, "Dennis Moran" wrote: >Paolo Milani wrote in article ><3338FB32 DOT 32A78285 AT leonardo DOT math DOT unipd DOT it>... >> I've a little problem with my program: when I write to memory allocated >> by me, (malloc, etc.) it works perfectly, but when I try writing to >> memory to an arbitrary address, I get a general protection fault. >> This is ok, but how do I write to video memory, without getting a >> protection fault ? >> When I obtain the linear address where the DPMI host maps the physical >> address of the video buffer, shall I call some kind of "change rights" >> function for that memory block ? [snip] > >Maybe you should have posted this to the djgpp newsgroup... > What's wrong with his posting this to rec.games.programmer? Because of the title? I think his question is relevant even for readers of the RGP newsgroup. Why? Because the answer to his question might prove useful to all people learning to program in protected mode; even those using different tools. Is there any reason why someone using Watcom C++ could not have a similar experience while trying to write to Video RAM? It just bothers me when people draw a thick line where there's only a thin one. PS - Sorry for not adding anything to this discussion... just had to get that out of my system. If you are to flame me, please do so via email :) +------------------------------+------------------------------+ : Adrian Lopez : virus BillG(MONOPOLISTIC); : : adrian2 AT poboxes DOT com : BillG.unleash(); : :..............................:..............................: : http://netdial.caribe.net/~adrian2 : +-------------------------------------------------------------+