home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1726 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.2 KB

  1. Path: sparky!uunet!icd.ab.com!iccgcc.decnet.ab.com!schmidtg
  2. From: schmidtg@iccgcc.decnet.ab.com
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Recursion and Windows programming
  5. Message-ID: <1992Sep8.111139.8820@iccgcc.decnet.ab.com>
  6. Date: 8 Sep 92 11:11:39 EST
  7. Lines: 23
  8.  
  9.  
  10.  
  11. I am in the process of converting a DOS program to run in the MS Windows
  12. environment and I am having some difficulties.  The program uses a recursive
  13. search routine to find the solution to a problem.  The program also must do
  14. some screen output along the way.  The problem that I am having is in breaking
  15. up the recursive algorithm so that it can be executed piece-meal in the
  16. Windows event driven execution paradigm.  I want to run the algorithm
  17. during idle time processing and so I must only execute a portion each time.
  18. Since a recursive algorithm uses the machine stack, I don't know of an easy
  19. way to save context and restore it between processing without getting down
  20. and dirty.  I'm sure I'm not the only one who has encountered this problem.
  21. How have others solved it?
  22.  
  23.  
  24. I hope this isn't an FAQ, my humble apologies if it is.
  25.  
  26.  
  27. Regards,
  28.  
  29.  
  30. -- Greg Schmidt        schmidtg@iccgcc.decnet.ab.com
  31.  
  32.