Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C 4.0 sublaunch woes (welcome back Rich)/enhancement requests Keywords: sublaunch think C Message-ID: <1998@husc6.harvard.edu> Date: 1 Mar 90 04:51:41 GMT References: <1696@crash.cts.com> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 48 In article <1696@crash.cts.com> alen@crash.cts.com (Alen Shapiro) writes: > >One of the ramifications is that if a user-application performs a sublaunch >for which a startup document is provided, appparmhandle may be resized >and/or relocated causing the restart of THINK C to go into a recursive >loop when the application has finished. Eventually the mac runs out >of stack and bombs. Icky! >Q1) Could THINK protect its vital info and reinstate it at THINK return- > from-user-application. Not easily at the present time; the simplest workaround is to not muck with AppParmHandle. >Q3) If no/yes, how would I detect if I'm running from within a LSC > project so as not to restore/screw-things-up if my application > was not started within a project. You know you're running as a project if HomeResFile of CODE 1 is not equal to CurResFile. Under these conditions, you could conceivably restore the AppParmHandle to designate that your project (gotten from CurApName and CurApVRefNum) should be reopened; this may fool THINK C into reopening the project after you've run it. The safest way would be to not mess with it at all. >Would THINK consider enhancing the system to; [requests deleted] We will consider any and all suggestions. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "When someone who makes four hundred and fifty dollars an hour wants to tell you something for free, it's a good idea to listen." ~~~~~~~~~~~~~~~