home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!west.West.Sun.COM!news2me.ebay.sun.com!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
- From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
- Newsgroups: comp.lang.pascal
- Subject: Re: Big problem with graphicmode in TP 6.0
- Message-ID: <exuptr.497.716164578@exu.ericsson.se>
- Date: 10 Sep 92 22:36:18 GMT
- References: <1992Sep10.162625.167@csghsg5a.bitnet>
- Sender: news@exu.ericsson.se
- Organization: Ericsson Network Systems, Inc.
- Lines: 52
- Nntp-Posting-Host: pc254167.exu.ericsson.se
-
- In article <1992Sep10.162625.167@csghsg5a.bitnet> 89612048s@csghsg5a.bitnet writes:
- >From: 89612048s@csghsg5a.bitnet
- >Subject: Big problem with graphicmode in TP 6.0
- >Date: 10 Sep 92 16:26:25 GMT
-
- >Problem with graphics in TP 6.0
-
- >I have written a nice graphical enviroment for my programs.
- >Unfortunatly when I was going to write my first program with
- >my new units it crashs very heavily! After initalising the
- >graphicmode with INITGRAPH (gd,gm,'C:\pascal') (where gd=detect,
- >and the graphicmodus will be VGA 640x480x16 on a SVGA Oak-Graphic
- >board with 512 KByte) and drawing some boxes and writing some text
- >I try to get some input by using the readkey command as followed:
-
- >var t,tt:char;
-
- >t:=readkey
- >if keypressed then tt:=readkey
- >else tt:=#0;
-
- >when I debug the program it works perfect until the first line of
- >t:=readkey.
-
- >then a - ^C - appears in the upper left corner of the screen in graphicmode
- >and that's it. Nothing works anymore, neither CTRL-BREAK nor CTRL-ALT-DELETE.
- >I have to turn off the computer. In the beginning it was possible to abord
- >by pressing ctrl-break several times and an errormessage appears complaining
- >that the overlaymanager is no installed. Well i never defined any overlay
- >(all I used was - uses crt,graph; -). But this was just at the beginning
- >now it does not work anymore either.
-
- >My question is, what is going wrong?! Is it my mistake or some bug in TP 6.0.
-
- The bug is that the error message is erroneous. I have had this problem
- before, and the problem is actually something else. Turn on all debugging,
- stack, range, and io checking, and make sure you are not overwriting code
- anywhere. I'm not sure exactly what is happening to you, but when I got
- that message I was trying to run a procedure by a pointer that was not
- initialized.
-
- One more hint. When you turn on the compiler switches, do a Build All, and
- also make sure you have some memory available for the BGI drivers. I have
- had trouble using bgi with {$M xxxx,0,0}. A reasonable setting might be
- {$M 8192,32768,32768}. Good luck.
- ----------------------------------------------------------------------------
- "This must be Thursday. I never could get the hang of Thursdays"
- - Douglas Adams
- - Patrick Taylor (Arthur Dent)
- Ericsson Network Systems
- exuptr@exu.ericsson.se "Don't let the .se fool you"
- or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
-