home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!apel
- From: apel@physik.uni-kl.de (Martin Apel (SAGA))
- Subject: Re: Debugging a filesystem handler...
- Message-ID: <1992Sep2.113512.25406@rhrk.uni-kl.de>
- Sender: news@rhrk.uni-kl.de
- Organization: University of Kaiserslautern, Germany
- References: <1992Aug31.061928.18053@softway.sw.oz.au>
- Date: Wed, 2 Sep 1992 11:35:12 GMT
- Lines: 56
-
- peterc@suite.sw.oz.au (Peter Chubb) writes:
- :
- : I'm trying to write a new filesystem handler. Example code that I've
- : looked at (RAW and the disk-handler from earlier Fish disks) debug by
- : opening a CON: window, then sending CMD_WRITE messages to the
- : console's message port. This worked under WB1.3 (last time I tried).
- :
- : This no longer seems to work under WB2.05. Instead the console device
- : appears to hang -- no new consoles can be opened.
- : I'm using SAS C 5.10a. The code looks something like:
- :
- : #include <proto/all.h>
- : struct ExecLibrary *SysBase;
- : struct DosLibrary *DosBase;
- : extern struct ExecLibrary * __far AbsExecBase;
- : BPTR debugFH;
- :
- : long __saveds
- : handler()
- : {
- : SysBase = AbsExecBase;
- : if ((DosBase = OpenLibrary(DOSNAME, 0)) == NULL)
- : return DOSFALSE;
- : debugFH = Open("CON:0/0/640/200/Handler Debug", MODE_NEWFILE);
- :
- : fsmsg = taskwait();
- : ....
- : }
- :
- : (I'm typing this in from memory; the actual code is at home!).
- :
- : Does anyone know why this no longer works?
- :
- :
- : Regards,
- :
- : - Peter Chubb
- :
- : Softway Pty Ltd, P.O. Box 305, Strawberry Hills, NSW 2012, AUSTRALIA
- : Phone: +61 2 698 2322; Fax: +61 2 699 9174; Telex: AA27987
- : Internet: peterc@softway.oz.au UUCP: ...!uunet!softway.oz!peterc
-
- I don't know, if that's the fault, but I think it has to be DOSBase (not
- DosBase). If you used the same compiler and all under 1.3 I don't know,
- why it would make a difference.
-
- --
- Reachable as: I do hate sums. There is no greater
- apel@gypsy.physik.uni-kl.de mistake than to call arithmetic an
- (Martin Apel) exact science. There are .. hidden
- laws of number which it requires a
- mind like mine to perceive. For
- instance, if you add a sum from the
- bottom up, and then again from the
- top down, the result is always
- different.
-