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

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!world!art
  3. From: art@world.std.com (Al Thompson)
  4. Subject: Re: Big problem with graphicmode in TP 6.0
  5. In-Reply-To: 89612048s@csghsg5a.bitnet's message of 10 Sep 92 16:26:25 GMT
  6. Message-ID: <ART.92Sep11130010@world.std.com>
  7. Sender: art@world.std.com (Al Thompson)
  8. Organization: The World Public Access UNIX, Brookline, MA
  9. References: <1992Sep10.162625.167@csghsg5a.bitnet>
  10. Date: Fri, 11 Sep 1992 18:00:10 GMT
  11. Lines: 62
  12.  
  13. In article <1992Sep10.162625.167@csghsg5a.bitnet> 89612048s@csghsg5a.bitnet writes:
  14.  
  15.    Problem with graphics in TP 6.0
  16.  
  17.    I have written a nice graphical enviroment for my programs.
  18.    Unfortunatly when I was going to write my first program with
  19.    my new units it crashs very heavily! After initalising the
  20.    graphicmode with INITGRAPH (gd,gm,'C:\pascal') (where gd=detect,
  21.    and the graphicmodus will be VGA 640x480x16 on a SVGA Oak-Graphic
  22.    board with 512 KByte) and drawing some boxes and writing some text
  23.    I try to get some input by using the readkey command as followed:
  24.  
  25.    var t,tt:char;
  26.  
  27.    t:=readkey
  28.    if keypressed then tt:=readkey
  29.    else tt:=#0;
  30.  
  31.    when I debug the program it works perfect until the first line of
  32.    t:=readkey.
  33.  
  34.    then a - ^C - appears in the upper left corner of the screen in graphicmode
  35.    and that's it. Nothing works anymore, neither CTRL-BREAK nor CTRL-ALT-DELETE.
  36.    I have to turn off the computer. In the beginning it was possible to abord
  37.    by pressing ctrl-break several times and an errormessage appears complaining
  38.    that the overlaymanager is no installed. Well i never defined any overlay
  39.    (all I used was - uses crt,graph; -). But this was just at the beginning
  40.    now it does not work anymore either.
  41.  
  42.    My question is, what is going wrong?! Is it my mistake or some bug in TP 6.0.
  43.  
  44.    I have made some test's.
  45.  
  46.    If I just initalise the graphicmode and then ask for a key and exit the
  47.    program after the key is pressed it works perfect. I just have an
  48.    AT 80286 with 640 KB base and 384 extended memory. With dos 5.0 and
  49.    himem.sys i get about 590 kbyte base memory. I thought that a bigger program
  50.    has not enought memory to run, so i compiled it in dos and run it there
  51.    but same effect. Funny is, that I programmed very much in graphicmode
  52.    with TP 5.5 and never had any troub÷le with it. So I can't explain what
  53.    I might have made wrong.
  54.  
  55.    Does anybody have some ideas what it might be?
  56.  
  57. I had no end of grief using a super VGA card with the Borland drivers.
  58. When you're using SVGA and a memory manager you must be sure to exclude
  59. the graphics memory.  You must also be sure to disable comm 3 and 4, if
  60. you have them.  It took five weeks of calls between me and Orchid to get
  61. that little item settled.
  62.  
  63. What happens is that the VGA memory gets corrupted, and then all bets are
  64. off, you should see some of the bizarre colors my DACpalette picked up
  65. out nowhere.  It was driving me nuts.  Everything looked right, but that
  66. puppy just wouldn't work.  Check carefully your config.sys and be sure
  67. that your memory manager leaves the VGA area alone.
  68.  
  69. Second, I suggest you get the bgi256 driver from Compuserve.  It's in the
  70. Borland Pascal library.  Type go bproga.  This was recommended by Borland
  71. tech support.  I picked it up and my life improved instantly.
  72.  
  73. Hope this helps.
  74.  
  75.