home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -in_the_mag- / reader_requests / stackattack / help_me! < prev    next >
Text File  |  1998-05-02  |  2KB  |  38 lines

  1. If you are not a programmer then this is nothing for you!
  2.  
  3. There's a little problem with StackAttack. There are two (or maybe more?)
  4. programs that did not work correctly (= don't get the correct stack size)
  5. when StackAttack is running. These programs are
  6.  
  7.     C:ICONX
  8.     SYS:SYSTEM/CLI  (= default tool of SYS:SYSTEM/SHELL icon)
  9.  
  10. If there's a STACK tooltype in their (project) icons then this stack will
  11. not be used. Instead they will get MINSTACK + ADDSTACK (arguments passed
  12. to StackAttack). SYS:SYSTEM/CLI seems to call SystemTagList() with no
  13. taglist (even when there's the STACK tooltype in the project icon). In such
  14. a case StackAttack used to create a temporary taglist on the stack with
  15. NP_StackSize set to MINSTACK + ADDSTACK. This seems to work with every other
  16. program. But SYS:SYSTEM/CLI and C:ICONX will no longer use the stack size
  17. from the tooltype.
  18.  
  19. In V1.0 I have changed the SystemTagList() patch so that it does not do
  20. anything (don't create temp taglist with NP_StackSize tag) when it does
  21. not find a NP_StackSize tagitem or when there's no taglist at all). This
  22. makes C:ICONX and SYS:SYSTEM/CLI get the correct stack (= from the tooltype)
  23. again. (Have a look at "patch.asm" --> search for "**HELP**")
  24.  
  25.  
  26. I think there must be a better solution. So if you have any idea please
  27. contact me. It has probably something do do with pr_StackSize (struct
  28. Process *) or cli_DefaultStack (struct CommandLineInterface *) which
  29. is not set to the value from the STACK-tooltype when StackAttack adds
  30. a NP_StackSize tagitem to the supplied (or temp. created) taglist. And
  31. why the hell is SYS:SYSTEM/CLI calling SystemTagList() with no taglist
  32. at all?
  33.  
  34.  
  35. --
  36.  
  37. EMail: steger@pass.dnet.it
  38.