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