home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!chx400!csghsg5a.bitnet!89612048s
- From: 89612048s@csghsg5a.bitnet
- Newsgroups: comp.lang.pascal
- Subject: Big problem with graphicmode in TP 6.0
- Message-ID: <1992Sep10.162625.167@csghsg5a.bitnet>
- Date: 10 Sep 92 16:26:25 GMT
- Organization: University of St.Gallen, Switzerland
- Lines: 46
-
- 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.
-
- I have made some test's.
-
- If I just initalise the graphicmode and then ask for a key and exit the
- program after the key is pressed it works perfect. I just have an
- AT 80286 with 640 KB base and 384 extended memory. With dos 5.0 and
- himem.sys i get about 590 kbyte base memory. I thought that a bigger program
- has not enought memory to run, so i compiled it in dos and run it there
- but same effect. Funny is, that I programmed very much in graphicmode
- with TP 5.5 and never had any troub÷le with it. So I can't explain what
- I might have made wrong.
-
- Does anybody have some ideas what it might be?
-
- Yours Markus
-
-
-
-