Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!rphroy!cfctech!sharkey!tygra!dave From: dave@tygra.UUCP (David Conrad) Newsgroups: comp.lang.pascal Subject: Re: Graphics and Exec Message-ID: <1991Mar27.095641.2368@tygra.UUCP> Date: 27 Mar 91 09:56:41 GMT References: <24959@hydra.gatech.EDU> Distribution: usa Organization: CAT-TALK Conferencing System, Detroit, MI Lines: 28 In article <24959@hydra.gatech.EDU> gt0652b@prism.gatech.EDU (I don't know man, he was just here) writes: >Hi, I am trying to write a graphical interface that also has a command line. >My problem is that when I try to set things up to run a Dos command, my >egavga driver won't run. > > for graphics, i need to uses initgraph(GrDriver, grmode?) > > for dos, I need to use the compiler directive > {$M 20000,0,0} > >The problem is that when I include the above compiler directive my >graphics procedures report that egavga was not installed. > Initgraph (and many other graph routines such as fonts and fills) use space on the heap. You cannot {$M ?, 0, 0} and have them work. On the other hand, DOS needs some memory to run in, so you can't {$M ?, 0, 655360} and use Exec. The solution is to reserve some heap, but also leave some memory for DOS. Why don't you try something like {$M 20000, 32768, 65536} (note that some minumum heap space must be present, this helps insure successful Initgraph.) Dave Conrad sharkey!tygra!dave -- = CAT-TALK Conferencing Network, Computer Conferencing and File Archive = - 1-313-343-0800, 300/1200/2400/9600 baud, 8/N/1. New users use 'new' - = as a login id. AVAILABLE VIA PC-PURSUIT!!! (City code "MIDET") = E-MAIL Address: dave%tygra@sharkey.cc.umich.edu