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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!sdd.hp.com!usc!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: Debugging a filesystem handler...
  5. Message-ID: <1992Sep2.205252.13120@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <1992Aug31.061928.18053@softway.sw.oz.au> <1992Sep2.113512.25406@rhrk.uni-kl.de>
  8. Date: Wed, 2 Sep 1992 20:52:52 GMT
  9. Lines: 46
  10.  
  11. In article <1992Sep2.113512.25406@rhrk.uni-kl.de> apel@physik.uni-kl.de (Martin Apel (SAGA)) writes:
  12. >peterc@suite.sw.oz.au (Peter Chubb) writes:
  13. >: 
  14. >: I'm trying to write a new filesystem handler.  Example code that I've
  15. >: looked at (RAW and the disk-handler from earlier Fish disks) debug by
  16. >: opening a CON:  window, then sending CMD_WRITE messages to the
  17. >: console's message port.  This worked under WB1.3 (last time I tried).
  18. >: 
  19. >: This no longer seems to work under WB2.05.  Instead the console device
  20. >: appears to hang -- no new consoles can be opened.  
  21. >: I'm using SAS C 5.10a.  The code looks something like:
  22. >: 
  23. >: #include <proto/all.h>
  24. >: struct ExecLibrary *SysBase;
  25. >: struct DosLibrary *DosBase;
  26. >: extern struct ExecLibrary * __far AbsExecBase;
  27. >: BPTR    debugFH;
  28. >: 
  29. >: long __saveds
  30. >: handler()
  31. >: {
  32. >:     SysBase = AbsExecBase;
  33. >:     if ((DosBase = OpenLibrary(DOSNAME, 0)) == NULL)
  34. >:         return DOSFALSE;
  35. >:     debugFH = Open("CON:0/0/640/200/Handler Debug", MODE_NEWFILE);
  36. >: 
  37. >:     fsmsg = taskwait();
  38. >:     ....
  39. >: }
  40. >: 
  41. >: (I'm typing this in from memory; the actual code is at home!).
  42. >: 
  43. >: Does anyone know why this no longer works?
  44. >: 
  45. >: 
  46. >:             Regards,
  47. >: 
  48. >:                 - Peter Chubb
  49.  
  50.     Handlers suffer from the same limitation tasks do in that most of
  51. the routines in the DOS library cannot be used. V1.3 must have been pretty
  52. lax in this area as I used to be able to get away with some similiar shit
  53. myself. Beginning with 2.0, C= tightened up on the reins.
  54.  
  55. jeff
  56.  
  57.