home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / System / SnoopDos / SnoopDos_Src / Readme.source < prev    next >
Text File  |  2001-02-04  |  8KB  |  182 lines

  1.  
  2.                         SnoopDos 3.0 -- Source Code Release
  3.  
  4.            Copyright © Eddy Carroll, September 1994. Freely distributable.
  5.  
  6.            Updated by Luca Longone and Massimo Tantignone in January 2000.
  7.  
  8.        Updated by Grzegorz Chmie and Thomas Richter in March 2000.
  9.  
  10.        Updated again in August 2000 by Thomas Richter. 
  11.  
  12.        Updated yet again in February 2001 by Thomas Richter.
  13.  
  14.  
  15. NOTE ABOUT THE 3.6 UPDATE
  16.  
  17.     Note that there's no 3.5 update, it was an internal release that never
  18.     made it to the public.
  19.     The 3.6 update fixes two major bugs. The first bug is that the LoadSeg()
  20.     patch did not kept care about overlayed files and therefore might have
  21.     trashed overlayed programs. Note that LoadSeg() takes actually three
  22.     arguments and not one!
  23.     The second bug is even more severe, and is only partially fixed by this
  24.     release. SnoopDos semaphore handling was and still is extremly fragile.
  25.     SnoopDos 3.4 and before could have run into a race condition caused by
  26.     a cycling semaphore lock-up of three partners the patch code did not and
  27.     cannot check for. SnoopDos, workbench and input device hung then
  28.     simultaneously.
  29.     There are other race conditions of this kind, and all of them could only
  30.     be fixed if the patch code of SnoopDos would be completely re-designed,
  31.     a job I currently cannot and will not do.
  32.     Therefore, SnoopDos 3.6 contains a workaround and uses now a semaphore
  33.     mechanism which may "time out". The net effect is that at least the most
  34.     common semaphore deadlock should be avoidable now, but at the price that
  35.     the SnoopDos main window cannot be guaranteed to be 100% accurately up-
  36.     dated. Hence, in case the main window seems to have forgotten to update
  37.     its snoop list, or the result codes of some snoop entries are missing, or
  38.     some reports seem to be missing at all, don't worry! The alternative in 
  39.     these cases would have been to deadlock your system. As a side effect,
  40.     the ugly layers semaphore check was disabled now as it is no longer
  41.     needed, and in fact never really worked as it was unable to detect a
  42.     cyclic deadlock of three or more partners.
  43.  
  44.  
  45. NOTE ABOUT THE 3.4 UPDATE
  46.  
  47.     This update fixes one feature, and one bug. The feature is that the
  48.     stack swap code was removed from SnoopDos 3.2 and up, and since people
  49.     tend not to read the instructions, SnoopDos crashed on some machines due
  50.     to stack overflow. The 3.4 release checks therefore for its stack size
  51.     and will increase it to the minimal recommended size.
  52.     The bug is that a possible race condition when closing the main window
  53.     was overlooked. The 3.3 and earlier releases could have caused some
  54.     "hits" in case the main window was closed while some other program run
  55.     in the patch routines.
  56.  
  57.  
  58. NOTE ABOUT THE 3.3 UPDATE
  59.  
  60.     This update fixes a flaw of the 3.2 release that somehow was unnoticed.
  61.     The 3.2 release could not be run from Workbench, due to an unexpected
  62.     re-define of the WBenchMsg variable to _WBenchMsg in some of the SAS/C
  63.     headers which broke the new startup code. I really did not expect 
  64.     this, sorry. Except the version number, and a slightly different compiler
  65.     option, nothing changed.
  66.  
  67. NOTE ABOUT THE 3.2 UPDATE
  68.  
  69.     This new update fixes one frequent hit I got when SnoopDos logged some
  70.     system calls while a second task was working on the layers. The
  71.     problem is that some graphics.library and rtg calls NULL the Rastport->
  72.     Layer field temporarely, and SnoopDos did not check before using this
  73.     pointer.
  74.     Additionally, the SnoopDos iconfication code did not work with "newicons"
  75.     which store their image data in an unorthogonal way. This was fixed by
  76.     Grzegorz Chmie, I used his code almost unchanged. Thanks!
  77.  
  78.     The file snoopdos.h has been enhanced to contain all exported functions
  79.     completely, to allow a clean recompile using the registerized parameters
  80.     model of SAS/C.
  81.  
  82.     Two obsolete amiga.lib calls, CreateExtIO() and DeleteExtIO() have been
  83.     replaced by their exec.library equivalence for orthogonality.
  84.     
  85.     All changes in the code have been marked by "THOR" so you may easely
  86.     identify my changes and additions.
  87.  
  88.     You can find the archive with the executable compiled from this source
  89.     code on Aminet (util/moni/snoopdos32.lha).
  90.  
  91.     For further questions, contact me at:
  92.  
  93.     thor@math.tu-berlin.de    (Thomas Richter)
  94.  
  95.  
  96. NOTE ABOUT THE 3.1 UPDATE
  97.  
  98.     This update removes an Enforcer hit which can happen with version 3.0
  99.     when a program is launched from ToolManager's dock and SnoopDos is
  100.     running with its "SendRexx" patch turned on. Said hit doesn't seem to
  101.     cause any harm, however it can be an annoyance for people which have
  102.     Enforcer running all the time.
  103.     The hit is apparently due to the way ToolManager sets up its message
  104.     port and only happens when SnoopDos 3.0 is running. Since we can't fix
  105.     ToolManager right now, we made SnoopDos able to avoid the hit, by adding
  106.     a safety check on the memory type at line 4466 in the "patches.c" module.
  107.  
  108.     The following files have been updated for this release:
  109.  
  110.     snooptext.h           snooptext.ct           snooptext.cd
  111.     SnoopDos.Roadmap      snoopdos.c             patches.c
  112.  
  113.     All files other than "patches.c" have been changed just to update the
  114.     version information; no changes were made to the actual code.
  115.  
  116.     You can find the archive with the executable compiled from this source
  117.     code on Aminet (util/moni/snoopdos31.lha).
  118.  
  119.     Note: references to PGP in the documentation aren't valid anymore for
  120.     SnoopDos versions greater than 3.0. If you need authentication, please
  121.     write to one of the following e-mail addresses:
  122.  
  123.     llong@tin.it, hexaae@tiscalinet.it (Luca Longone)
  124.     tanti@intercom.it (Massimo Tantignone)
  125.     ecarroll@iol.ie (Eddy Carroll)
  126.     thor@math.tu-berlin.de (Thomas Richter)
  127.  
  128.     The rest of this file is unchanged from the original Readme.source file
  129.     as found in the SnoopDos 3.0 source code distribution.
  130.  
  131.  
  132. INTRODUCTION
  133.  
  134.     SnoopDos patches a variety of AmigaDOS library functions that
  135.     are commonly called by other programs and allows you to monitor
  136.     the activities carried out by those programs.
  137.  
  138.     The source code allows you to examine how SnoopDos operates. You
  139.     may find it useful as example code if you are interested in any
  140.     of the following:
  141.  
  142.       - patching system library functions
  143.       - creating font-sensitive gadtools or BOOPSI GUI interfaces
  144.         without the help of a third party GUI library
  145.       - accessing AmigaGuide help
  146.       - copying text to the clipboard
  147.       - allowing localisation of all program text strings
  148.       - supporting drag & drop operations
  149.       - seeing how a medium sized Amiga application is constructed
  150.  
  151.     I don't claim that this code is perfect but it does have the advantage
  152.     of actually working, so it's a useful starting point.
  153.  
  154.     You will probably also want to obtain the companion binary archive
  155.     snoopdos30.lha, available in the /pub/aminet/util/moni directory on
  156.     AmiNet. This contains the SnoopDos executable, and also an extensive
  157.     AmigaGuide help file which should prove useful while browsing the
  158.     source code.
  159.  
  160.     See the file SnoopDos.Roadmap inside the source directory for information
  161.     about how the source code is organised.
  162.  
  163.  
  164. DISTRIBUTION CONDITIONS
  165.  
  166.     You may freely use portions of the SnoopDos source code in your
  167.     own programs if you wish. However, if you use two or more complete
  168.     functions from the SnoopDos code, you must acknowledge the origin
  169.     of those functions in your documentation and source code.
  170.  
  171.     You may modify the SnoopDos source code to create new versions of
  172.     SnoopDos for your own use only. You may not redistribute such new
  173.     versions without my explicit permission.
  174.  
  175.  
  176. AUTHOR
  177.  
  178.     You can contact the author at:
  179.  
  180.         ecarroll@maths.tcd.ie
  181.         ecarroll@cix.compulink.co.uk
  182.