Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!tut!abo.fi!rosenbergr From: rosenbergr@abo.fi (Robin Rosenberg) Newsgroups: comp.sys.amiga.tech Subject: Re: How to close a device, cont Message-ID: <588@abo.fi> Date: 22 Dec 88 02:56:56 GMT References: <587@abo.fi> Organization: Abo Academy, Finland Lines: 24 In article <587@abo.fi>, vinsci@abo.fi (Leonard Norrgard) writes: > > What is the *correct* order to close a device and free buffer memory & > replyports? > ... One more question concerning the same subject: When I do CloseDevice. What happens to a (maybe) pending I/O-request. Do I have to AbortIO(it) or does CloseDevice do that. If I have to abort it, what happens if the request is not pending anymore ?. I can't find any way to be sure that a request is not pending. Ok I do CheckIO and find it's still pending, then I do AbortIO. But if the request is returned between CheckIO and AbortIO, i will be aborting a nonpending request. Does anyone know the *CORRECT* way of closing up a device ? thnx --- Robin Rosenberg, Finn|, 22340 Geta, Finland or: Studentbyn 40A3, 20510 ]bo, Finland Note: | is o with two dots on top ] is A with a ring on top. "The use of COBOL cripples the mind; it's teaching should therefore be regarded as a criminal offense"