Xref: news-dnh.mv.net comp.os.msdos.djgpp:3090 Path: news-dnh.mv.net!mv!news.sprintlink.net!usenet.kornet.nm.kr!news.kreonet.re.kr!overload.lbl.gov!lll-winken.llnl.gov!uwm.edu!chi-news.cic.net!simtel!oleane!jussieu.fr!news.forth.gr!news-ath.forthnet.gr!news-the.forthnet.gr!usenet From: than AT alphanet DOT gr Newsgroups: comp.os.msdos.djgpp Subject: graphics and dpmi for djgpp Date: 7 Nov 1995 16:59:59 GMT Organization: Foundation for Research and Technology Hellas, FORTHnet Lines: 32 Nntp-Posting-Host: krini.alphanet.gr To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp hi there, i'm working with gcc 2.63 (djgpp 1.12maint3) i get protection faults working with the following: code goes like this: --------------------------------------------------------------- GrSetMode(...); // fine i get my graphics mode GrLine(0,0,100,100,GrWhite()); // protection fault (***) GrSetMode(GR_default_text); // ok returns back in text mode. --------------------------------------------------------------- after some days of testing (i get the same results both with -lgr and -lgrx) i found out that the problem really is in the DPMI memory interface. if the same piece of code runs in VCPI mode everything goes as expected. practically * VCPI means plain dos whith HIMEM installed, and * DPMI means a DOS BOX under Windows. well the second enviroment (windows) is much better for developing and testing code. is there any workaroud? thanks.