>Dear Robert Covington, > >you wrote: > >* Dynamic memory allocation for a GWorld for instance. >... > >Here is a FBII Function from my UpDater Program that allocates Temporary >Memory for Copying of Files: (Take what you need...) <big snip> >In the Files volume of IM (1995) there is a nice Pascal example of how >to save a file and keep a copy in the Temp Folder. You will find all you >need. Be aware that there are some changes with Folder Manager for OS8 >and newer (see Apple's Webpage). >Best, > >Herbie >You are able to obtain memory from system heap with useTempMemBit. > > QDErr err = NewGWorld(&world, 32, &rect, nil, nil, 1<<useTempMemBit); >Try FindFolder Toolbox call. Osamu Shigematsu Thank you Herbie and Osamu, and in advance to anyone else who responds. I am using OS 8.1, however I have been reading about OS 8.5 and up doing some different things with the Temp folder perhaps, particularly OS 9. But all I need to do is save a temporary PICT file and read it back in then delete it. I am saving my undo buffer while my Actions get re-run, and saving to a temp file will save me from an extra GWorld creation, and allow for larger images to be open since the RAM will be freed up. The actions make use of my main undo world during the replay so I have to keep a spare of the starting Undo buffer for undoing the actions. My Undo has a "Fade Undo" feature which requires some blending, otherwise this would all be easier in a replay situation. :) Thanks. Robert