home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5307 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  3.0 KB

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