Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ncar!gatech!emory!platt From: platt@emory.uucp (Dan Platt) Newsgroups: comp.sys.ibm.pc Subject: Re: help ! Problems with TurboC graphics Message-ID: <2818@emory.uucp> Date: 1 Apr 88 22:52:19 GMT References: <1020@luth.luth.se> Reply-To: platt@emory.UUCP (Dan Platt) Organization: Emory University Lines: 19 In article <1020@luth.luth.se> roland@sm.luth.se (Roland Hedberg) writes: > >... when I now place initgraph in the beginning of main() , the PC locks up. >... > >The program is all C , no other language . >If I use getgraph() first , then getgraph works like it should . >The problem starts (an ends :-( ) with initgraph(). > >So,please help !! >-- roland I've had problems with this at times; mostly because the initgraph() couldn't find the *.bgi files. Tip 1: use '/'s to indicate directories. Tip 2: check to see that the correct font was attempted to be loaded by checking the &itype or &imode (initgraph returns values which can be checked). If you don't check these, and the mode and driver weren't loaded, your program will hang. Dan Platt