home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!icd.ab.com!iccgcc.decnet.ab.com!schmidtg
- From: schmidtg@iccgcc.decnet.ab.com
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Recursion and Windows programming
- Message-ID: <1992Sep8.111139.8820@iccgcc.decnet.ab.com>
- Date: 8 Sep 92 11:11:39 EST
- Lines: 23
-
-
-
- I am in the process of converting a DOS program to run in the MS Windows
- environment and I am having some difficulties. The program uses a recursive
- search routine to find the solution to a problem. The program also must do
- some screen output along the way. The problem that I am having is in breaking
- up the recursive algorithm so that it can be executed piece-meal in the
- Windows event driven execution paradigm. I want to run the algorithm
- during idle time processing and so I must only execute a portion each time.
- Since a recursive algorithm uses the machine stack, I don't know of an easy
- way to save context and restore it between processing without getting down
- and dirty. I'm sure I'm not the only one who has encountered this problem.
- How have others solved it?
-
-
- I hope this isn't an FAQ, my humble apologies if it is.
-
-
- Regards,
-
-
- -- Greg Schmidt schmidtg@iccgcc.decnet.ab.com
-
-