home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5303 < prev    next >
Encoding:
Text File  |  1992-09-10  |  2.1 KB  |  56 lines

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!chx400!csghsg5a.bitnet!89612048s
  2. From: 89612048s@csghsg5a.bitnet
  3. Newsgroups: comp.lang.pascal
  4. Subject: Big problem with graphicmode in TP 6.0
  5. Message-ID: <1992Sep10.162625.167@csghsg5a.bitnet>
  6. Date: 10 Sep 92 16:26:25 GMT
  7. Organization: University of St.Gallen, Switzerland
  8. Lines: 46
  9.  
  10. Problem with graphics in TP 6.0
  11.  
  12. I have written a nice graphical enviroment for my programs.
  13. Unfortunatly when I was going to write my first program with
  14. my new units it crashs very heavily! After initalising the
  15. graphicmode with INITGRAPH (gd,gm,'C:\pascal') (where gd=detect,
  16. and the graphicmodus will be VGA 640x480x16 on a SVGA Oak-Graphic
  17. board with 512 KByte) and drawing some boxes and writing some text
  18. I try to get some input by using the readkey command as followed:
  19.  
  20. var t,tt:char;
  21.  
  22. t:=readkey
  23. if keypressed then tt:=readkey
  24. else tt:=#0;
  25.  
  26. when I debug the program it works perfect until the first line of
  27. t:=readkey.
  28.  
  29. then a - ^C - appears in the upper left corner of the screen in graphicmode
  30. and that's it. Nothing works anymore, neither CTRL-BREAK nor CTRL-ALT-DELETE.
  31. I have to turn off the computer. In the beginning it was possible to abord
  32. by pressing ctrl-break several times and an errormessage appears complaining
  33. that the overlaymanager is no installed. Well i never defined any overlay
  34. (all I used was - uses crt,graph; -). But this was just at the beginning
  35. now it does not work anymore either.
  36.  
  37. My question is, what is going wrong?! Is it my mistake or some bug in TP 6.0.
  38.  
  39. I have made some test's.
  40.  
  41. If I just initalise the graphicmode and then ask for a key and exit the
  42. program after the key is pressed it works perfect. I just have an
  43. AT 80286 with 640 KB base and 384 extended memory. With dos 5.0 and
  44. himem.sys i get about 590 kbyte base memory. I thought that a bigger program
  45. has not enought memory to run, so i compiled it in dos and run it there
  46. but same effect. Funny is, that I programmed very much in graphicmode
  47. with TP 5.5 and never had any troub÷le with it. So I can't explain what
  48. I might have made wrong.
  49.  
  50. Does anybody have some ideas what it might be?
  51.  
  52. Yours Markus
  53.  
  54.  
  55.  
  56.