[comp.sys.mac.programmer] Locking Handles

sam@neoucom.UUCP (Scott A. Mason) (10/30/89)

My program has been causing some pretty weird crashes that I think might be
memory related.
Here's a couple of questions for the net Mac programmers.

When should one lock down Handles within a program?
Which structures should be locked?

In addition, I can't seem to get the program to run from within Think C. 
(3.02)  If I Build Application... and run from the Finder, it runs fine
(ignoring the weird memory related crashes).
Comments from Think C people?

Thanks for the info.
-- 
--------------------------------------------------------------------------------
"If it ain't broke, don't fix it," and certainly don't blame me.
UUCP:  {pitt,scooter,hal,cwjcc,aablue}!neoucom!sam   INTERNET:  sam@neoucom.EDU
Scott A. Mason, Coordinator of Systems Operations, NEOUCOM

steve@uswmrg2.UUCP (Martin) (11/03/89)

>In addition, I can't seem to get the program to run from within Think C. 
>(3.02)  If I Build Application... and run from the Finder, it runs fine
>(ignoring the weird memory related crashes).

This is because Think C does not strip unused portions of the linked
libraries out of the project when running from Think C.  If you are
running under Multifinder this means that the program may need more
memory allocated for it when running as a project than when running
as a standalone application.

=>Steve<=