home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / 7744 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.1 KB

  1. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!neoucom.edu!aldhfn!saxon!fletcher
  2. From: fletcher@saxon.UUCP (Edward F Eaglehouse)
  3. Subject: Re: Clipper 5.01 warning.
  4. Newsgroups: comp.databases
  5. References: <1992Nov3.212404.2892@pegasus.com>
  6. X-Newsreader: TIN [version 1.1 PL6]
  7. Message-ID: <fletcher.0269@saxon.UUCP>
  8. Date: 7 Nov 92 21:48:43 EST
  9. Organization: Auldhaefen Associates
  10. Lines: 14
  11.  
  12. I suspect two problems here:
  13.  
  14. The first, if you are are not using SET EXCLUSIVE ON, is that the file you
  15. are printing to will be locked when you try to read it.  Unless you close it
  16. with the SET PRINTER TO command beforehand.  The low level file functions
  17. Clipper provides do not give any way to open a file in shared mode, and I
  18. would guess that the same is true of the redirection functions (SET PRINTER
  19. TO and SET ALTERNATE TO).
  20.  
  21. The second problem, and what is the most likely source of what you are
  22. experiencing, is that the file you are writing to is buffered.  Trying to
  23. use MemoRead() to read the file that may not be completely written will not
  24. yield the results you wanted.  I presume you are using these functions to
  25. write a report that a user can scroll through.
  26.