home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY1 / EXAMP2.ZIP / PB042690 < prev    next >
Text File  |  1990-04-26  |  8KB  |  197 lines

  1. 1,2,3,4
  2. H#: 41561 S12/SPECTRA Publishing
  3.     25-Apr-90  10:19:48
  4. Sb: #41549-Btrieve Update Fix
  5. Fm: Robert N. Barrett 76530,1452
  6. To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
  7.  
  8. Bob,
  9.      Thanks for the quick reply.  I look forward to the Btrieve interface.
  10. Also, I got around to doing some reading and found out about the SUBS,
  11. FUNCTIONS and LABELS naming rules.  That is my problem - though not a large
  12. one. Robert
  13.  
  14. Press <CR> for next or type CHOICES !
  15. H#: 41627 S12/SPECTRA Publishing
  16.     25-Apr-90  13:50:59
  17. Sb: #Floating Point Conflict
  18. Fm: Greg Halper 73167,3442
  19. To: Bob Zale 76304,1303 (X)
  20.  
  21. Bob: I have stumbled on a possible bug (?) in PB 2.00b (3/30/90 patch applied).
  22. The error manifests itself at rollover values for double precision integers
  23. (i&) with the floating point processor enabled. A sample program for
  24. demonstrating this problem is as follows:
  25.  
  26. i&=0 DO
  27.      INPUT "Enter a number : "; i&
  28.      PRINT "The number entered was : ";i& LOOP UNTIL ( i& = -22) END
  29.  
  30. Running this program with the floating point enabled (installed and SET 87=YES)
  31. and disabled (installed and SET 87=NO) gave the following results on a PC clone
  32. with a Phoenix BIOS (80286 with an 80287):
  33.  
  34.          80X87 Enabled                |          80X87 Disabled Number Entered
  35. Number returned   |   Number Entered     Number returned
  36.  2147483648         0                 |     2147483648       0
  37.  2147483647         2147483647        |     2147483647       2147483647
  38.  2147483648         2147434496        |     2147483648      -2147483648
  39.           0         0                 |              0       0
  40.  2147483648         16384             |     2147483648      -2147483648
  41.  2147483647         2147483647        |     2147483647       2147483647
  42.  2147483648         2147434496        |     2147483648      -2147483648
  43. -2147483648        -2147483648        |    -2147483648      -2147483648
  44. -2147483649        -2147467264        |    -2147483649      -2147483647
  45.        -22         -22                |            -22       -22 (exit)
  46. |     (exit)
  47.  
  48. I obtained "similar" results (incorrect overflow values) on an AST machine and
  49. an IBM XT equipped with an 80387 and 8087 respectively. The discrepancies were
  50. remedied by disabling the floating point in both these cases also
  51.  
  52. (BTW, this problem started originally at troubleshooting an integer overflow
  53. error on input from a file. The value of the integer in the file was 128; we
  54. haven't been able to reproduce that problem after retyping the data file
  55. though.)
  56.  
  57. Any insights?
  58.  
  59. regards,
  60.  
  61. greg
  62.  
  63. There are 2 Replies.
  64.  
  65. Press <CR> for next or type CHOICES !
  66. H#: 41641 S12/SPECTRA Publishing
  67.     25-Apr-90  15:47:19
  68. Sb: #41627-Floating Point Conflict
  69. Fm: Barry Erick for Spectra 75300,214
  70. To: Greg Halper 73167,3442
  71.  
  72. Looks like I may have to get a 80287 as without to coproc, all tests with this
  73. were correct with both a emulate and procedure.
  74.      --- barry
  75.  
  76.  
  77.  
  78. Press <CR> for next or type CHOICES !
  79. H#: 41645 S12/SPECTRA Publishing
  80.     25-Apr-90  16:34:22
  81. Sb: #41627-#Floating Point Conflict
  82. Fm: Bob Zale: PowerBASIC R&D 76304,1303
  83. To: Greg Halper 73167,3442
  84.  
  85. Greg--
  86.   It sounds as though you have numeric error checking disabled.  The INPUT
  87. statement uses a floating point conversion in all cases as you could enter a
  88. floating point value, which we would then round-off to an integer before the
  89. assignment to i&.  If you turn numeric error checking off, PB "MAY" report a
  90. numeric error such as this, but it just isn't guaranteed to report it.  Could
  91. you double-check that, please, and let me know?  I haven't been able to make it
  92. fail.  Thanks!
  93.   Bob Zale
  94.  
  95. There is 1 Reply.
  96.  
  97. Press <CR> for next or type CHOICES !
  98. H#: 41761 S12/SPECTRA Publishing
  99.     26-Apr-90  05:01:49
  100. Sb: #41645-Floating Point Conflict
  101. Fm: Barry Erick for Spectra 75300,214
  102. To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
  103.  
  104. Bob,
  105.  WhenI checked this I had numeric error checking off, so is this "MAY" be a
  106. problem only related to 80x87's?
  107.       --- Barry
  108.  
  109.  
  110.  
  111. Press <CR> for next or type CHOICES !
  112. H#: 41663 S12/SPECTRA Publishing
  113.     25-Apr-90  18:23:02
  114. Sb: Sidekick Plus
  115. Fm: Bob Zale: PowerBASIC R&D 76304,1303
  116. To: ALL
  117.  
  118. We seem to be experiencing some conflict between PowerBASIC executable
  119. programs, and Borland's Sidekick Plus.  It seems that when you have multiple
  120. TSR programs loaded, and Borland's SKP is NOT the last one loaded, it causes a
  121. segment register to be altered during a timer tick.  This, of course, will
  122. cause all sorts of serious side effects.  If you have experienced anything
  123. similar, we would greatly appreciate your report of the symptoms, so we can
  124. assist Borland in correcting the problem with SKP.  It does seem that all
  125. problems just "go away" if SKP is the last TSR loaded on your system, so for
  126. now that seems to be the work-around.  Good luck!
  127.   Bob Zale (PowerBASIC R&D)
  128.  
  129. Press <CR> for next or type CHOICES !
  130. H#: 41681 S12/SPECTRA Publishing
  131.     25-Apr-90  19:34:17
  132. Sb: #DOS version problem
  133. Fm: John Carter 72236,154
  134. To: Bob Zale
  135.  
  136. Bob,
  137.  
  138. The program I'm having a problem with is an in-house adjunct to the ATTMail
  139. Access Plus e-mail program.  It simplifies printing multiple messages, which is
  140. especially useful for the secretaries who handle e-mail for several managers.
  141.  
  142. The default directory is c:\attmsg\in (the standard 'inbox'), but any path can
  143. be given on the command line.  Message file names have the date and time of
  144. receipt(incoming) or creation(outgoing) coded in them in the format
  145. 'ymdhmmss.m??' (year, month, day, hour, minute, second, message type). The
  146. messages have 'From:', 'Date:', 'Subject:', etc., lines in the header.
  147.  
  148. The complete program works (it reads and displays the directory and the message
  149. contents) when compiled on an AT&T PC6300 (8086) or PC6310 (80286) under AT&T
  150. DOS 3.2.  However, it does not find any files in the directory when run under
  151. AT&T DOS 2.11 (no error messages produced).  The directory reading code in
  152. 'mpick.inc' (based on a program from Turbo Technix) works under either version
  153. of DOS.  Only when the complete program is run under DOS 2.11 does it fail to
  154. give the desired output.
  155.  
  156. I've probably read the code too many times to spot anything obvious, but maybe
  157. a fresh set of eyes will see the problem :-).
  158.  
  159.  I have PowerBASIC 2.00a.  I saw fixes for 2.00b.  Guess I was just slow about
  160. sending in the registration card.
  161.  
  162. The files are in 'mp.arc' in Library 12.
  163.  
  164. Thanks, John also available at attmail!jecarter  or att!atleng1!jec
  165.  
  166. P.S.  Please, no comments on the coding styles - this is on its third
  167.       generation and still has a lot of things that were "OK for testing
  168.       but we'll do it right later."  'Later' is beginning to disappear
  169.       under the stack of "needed this yesterday"...
  170.  
  171. There is 1 Reply.
  172.  
  173. Press <CR> for next or type CHOICES !
  174. H#: 41766 S12/SPECTRA Publishing
  175.     26-Apr-90  05:17:27
  176. Sb: #41681-DOS version problem
  177. Fm: Barry Erick for Spectra 75300,214
  178. To: John Carter 72236,154
  179.  
  180. John.,
  181.  You should get the file Upgrad.Inf from Lib 12. It has the info on how to
  182. obtain the free upgrade from 2.0a to 2.0b . That takes care of the problems.
  183.    --- Barry
  184.  
  185.  
  186.  
  187. Press <CR> for next or type CHOICES !
  188. HPC Vendor B ForumHSubjects Menu
  189.  
  190. Subject (# msgs)
  191.  
  192. Section 12 - SPECTRA Publishing
  193.  1 Btrieve Update Fix  (1)
  194.  2 Floating Point Conflict  (4)
  195.  3 Sidekick Plus  (1)
  196.  4 DOS version problem  (2)
  197. HEnter choice(s) !