home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12996 < prev    next >
Encoding:
Text File  |  1992-09-02  |  2.3 KB  |  68 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. 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
  3. From: apel@physik.uni-kl.de (Martin Apel (SAGA))
  4. Subject: Re: Debugging a filesystem handler...
  5. Message-ID: <1992Sep2.113512.25406@rhrk.uni-kl.de>
  6. Sender: news@rhrk.uni-kl.de
  7. Organization: University of Kaiserslautern, Germany
  8. References: <1992Aug31.061928.18053@softway.sw.oz.au>
  9. Date: Wed, 2 Sep 1992 11:35:12 GMT
  10. Lines: 56
  11.  
  12. peterc@suite.sw.oz.au (Peter Chubb) writes:
  13. : I'm trying to write a new filesystem handler.  Example code that I've
  14. : looked at (RAW and the disk-handler from earlier Fish disks) debug by
  15. : opening a CON:  window, then sending CMD_WRITE messages to the
  16. : console's message port.  This worked under WB1.3 (last time I tried).
  17. : This no longer seems to work under WB2.05.  Instead the console device
  18. : appears to hang -- no new consoles can be opened.  
  19. : I'm using SAS C 5.10a.  The code looks something like:
  20. : #include <proto/all.h>
  21. : struct ExecLibrary *SysBase;
  22. : struct DosLibrary *DosBase;
  23. : extern struct ExecLibrary * __far AbsExecBase;
  24. : BPTR    debugFH;
  25. : long __saveds
  26. : handler()
  27. : {
  28. :     SysBase = AbsExecBase;
  29. :     if ((DosBase = OpenLibrary(DOSNAME, 0)) == NULL)
  30. :         return DOSFALSE;
  31. :     debugFH = Open("CON:0/0/640/200/Handler Debug", MODE_NEWFILE);
  32. :     fsmsg = taskwait();
  33. :     ....
  34. : }
  35. : (I'm typing this in from memory; the actual code is at home!).
  36. : Does anyone know why this no longer works?
  37. :             Regards,
  38. :                 - Peter Chubb
  39. : Softway Pty Ltd, P.O. Box 305, Strawberry Hills, NSW 2012, AUSTRALIA
  40. : Phone: +61 2 698 2322;       Fax: +61 2 699 9174;     Telex: AA27987
  41. : Internet: peterc@softway.oz.au       UUCP: ...!uunet!softway.oz!peterc
  42.  
  43. I don't know, if that's the fault, but I think it has to be DOSBase (not 
  44. DosBase). If you used the same compiler and all under 1.3 I don't know,
  45. why it would make a difference.
  46.  
  47. --
  48. Reachable as:                I do hate sums. There is no greater
  49. apel@gypsy.physik.uni-kl.de        mistake than to call arithmetic an
  50. (Martin Apel)                exact science. There are .. hidden
  51.                     laws of number which it requires a
  52.                     mind like mine to perceive. For
  53.                     instance, if you add a sum from the
  54.                     bottom up, and then again from the 
  55.                     top down, the result is always
  56.                     different.
  57.