>>Tha above part works fine. What I'd also like to retrieve are all the open tables/cursors and all the memory variables and current application object properties when the error happens. Any ideas?
>
>Do a LIST MEMORY NOCONSOLE TO FILE and a LIST STRUCTURE NOCONSOLE TO FILE and then read the file with FileToStr(). As for the application object, you'll have to do that manually with AMembers()
Rather than LIST STRUCTURE, wouldn't LIST STATUS be more useful?