home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11575 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.6 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmfra!forgeas
  2. From: forgeas@swinjm.UUCP (Jean-Michel Forgeas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: **HELP** Whats wrong with this program?
  5. Message-ID: <20Dor*eL1@swinjm.UUCP>
  6. Date: 23 Jul 92 13:07:14 GMT
  7. References: <sims.711806545@sauron.msfc.nasa.gov>
  8. Reply-To: cbmvax!cbmehq!cbmfra!swinjm!forgeas (Jean-Michel Forgeas)
  9. Organization: The Software Winery
  10. Lines: 28
  11. X-Newsreader: Arn V1.00 alpha rel2
  12.  
  13. In article <sims.711806545@sauron.msfc.nasa.gov>, Herb Sims writes:
  14.  
  15. > The following is a short serial open/read a little/close program and I
  16. > cannot figure out why the program crashes.  Can someone **PLEASE** help
  17. >     [...many lines deleted...]
  18. >     jsr     _CreatePort             ;Go open the port
  19. >     jsr     _CreateExtIO            ;Allocate/intialze IO request block
  20. >     jsr     _LVOOpenDevice(a6)      ;Go open serial.device
  21. >
  22. > ;this is to be the read/write code
  23. >
  24. >     jsr     _LVOCheckIO(a6)         ;See if any outstanding IO requests
  25. >     jsr     _LVOAbortIO(a6)         ;Yeap, so stop any IO requests before
  26. >     jsr     _LVOCloseDevice(a6)     ;Go close serial.device
  27. >     jsr     _DeletePort             ;Delete the message port to free RAM
  28.  
  29. Just an idea... perhaps your crash is because you CheckIO() an IO which
  30. has not been used.
  31. Just after the OpenDevice(), you could try to DoIO() a CMD_QUERY to the
  32. device.
  33. BTW you should DeleteExtIO() in your example.
  34.  
  35. Best regards
  36.     Jean-Michel
  37. --
  38. Jean-Michel Forgeas         uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
  39. 4 rue du General Leclerc                       __
  40. 95210 Saint Gratien, France                    \/
  41.