home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11625 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  1.8 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!ieunet!tcdcs!unix1.tcd.ie!rwallace
  2. From: rwallace@unix1.tcd.ie (russell wallace)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Fix for Zortech 386 Screen Memory Access wanted
  5. Message-ID: <rwallace.725390879@unix1.tcd.ie>
  6. Date: 26 Dec 92 17:27:59 GMT
  7. References: <rwallace.724701384@unix1.tcd.ie> <1992Dec23.190904.14515@proto.com>
  8. Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
  9. Organization: Trinity College, Dublin
  10. Lines: 28
  11. Nntp-Posting-Host: unix1.tcd.ie
  12.  
  13. In <1992Dec23.190904.14515@proto.com> joe@proto.com (Joe Huffman) writes:
  14.  
  15. >rwallace@unix1.tcd.ie (russell wallace) writes:
  16.  
  17. >>Could someone mail me the fix for the problem with Zortech C++ v3.0,
  18. >>compiling for 386 (extended memory model), when you try to access screen
  19. >>memory (memory protection error)? 
  20.  
  21. >Can you give me an example?  It might be something you are doing wrong...
  22. >We (FlashTek) supplied the extender to Zortech/Symantec and probably can 
  23. >answer your questions as well as anybody...
  24.  
  25. Basically the method of accessing screen memory I'm using is with a far
  26. pointer with segment = B800h and offset = row*160 + column*2, to give a
  27. pointer to the character+attribute at (row,column). This works fine in
  28. tiny, small, large etc. memory models, but does not work in extended
  29. (option mx) memory model - as soon as I try to write a value into the
  30. selected address, the program drops out to DOS with a 386 general
  31. protection error. Presumably what's happening is that the 386 DOS
  32. extender assumes that since I don't have permission to write to that
  33. area of memory, a memory protection violation has occurred. I've heard
  34. that a fix can be downloaded from Zortech's bulletin board, but I can't
  35. access that.
  36.  
  37. --
  38. "To summarize the summary of the summary: people are a problem"
  39. Russell Wallace, Trinity College, Dublin
  40. rwallace@unix1.tcd.ie
  41.