home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / acorn / tech / 2 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!acorn!jbye
  2. From: jbye@acorn.co.uk (James)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: RISCOSlib questions
  5. Message-ID: <17270@acorn.co.uk>
  6. Date: 27 Jul 92 07:38:16 GMT
  7. References: <1992Jul26.171110.1@vxdesy.desy.de>
  8. Sender: jbye@acorn.co.uk
  9. Organization: Acorn Computers Ltd, Cambridge, England
  10. Lines: 26
  11.  
  12. In article <1992Jul26.171110.1@vxdesy.desy.de> burke@vxdesy.desy.de writes:
  13.  
  14. > [intro deleted]
  15. >
  16. >1) When should I call xfersend_clearunknowns() (or is it done by saveas?)
  17. >
  18. >2) Is it OK to just call wimpt_checkmode() on mode-change events; also, do
  19. >   I have to call it during initialisation?
  20. >
  21.  
  22. Hopefully I can answer your questions :-
  23.  
  24. 1) The unknown_event handlers used by xferesend (saveas does very little and
  25. calls xfersend) maybe be left hanging around if the save has failed.  Hence,
  26. you should construct your code as follows :-
  27.  
  28.         saveas(0xFFF,"TextFile",1024,save_proc,ram_proc,print_proc,handle);
  29.         xfersend_clearunknowns();
  30.  
  31. It maybe wise to always call clearunknowns as I beleive it won't give you
  32. any problems even is xfersend has stopped claiming.
  33.  
  34. 2) You should call wimpt_checkmode() when you initialise and when you
  35.    receive a mode change event.
  36.  
  37. --James
  38.