Hi, all. I'm not trying to use Temporary Memory. I read the Inside Macintosh : Memory Chapter 2-10 but I could not understand several description about it. (1) If temporary-memory handles are not real, then you cannot use normal Memory Manager routines such as HLock to manipulate them. How can I lock it up or unlock it? I think I have to use MemoryHd& = FN tempNewHandle(size&,osErr) call TempDisposeHandle(MemoryHd&,osErr) call tempHLock(MemoryHd&,osErr) call tempHunLock(memoryHd&,osErr) (Those toolbox calls may not be supported in FB. Does anyone have converted?) How can I distinguish temporary handle from normal memory manger's handle? Can I use get state or set state? (2) The Gestalt function includes a selector to determine whether the temporary-memory routines are present in the operating environment and, if they are, whether the temporary-memory handles are tracked and whether they are real. If temporary-memory handles are not tracked, you must release temporary memory before your next call to GetNextEvent or WaitNextEvent. What's GetNextEvent or WaitNextEvent? I guess this is same as HANDLEEVENTS. This topic was explained in Tecnotes form apple, but I cannot understand because it's very hard... Therefore, I'm seeking sample code in FB. The best way to understand of this topic is see the good code, I think. Is there anyone who had done this work? I want to compress off-world to JPEG, and I have to allocate a handle to temporary for compressor. Sometimes the off-world is very large and fail to allocate a handle from application heap. In this case, I guess I have to use temp memory, right? TIA. Osamu Shigematsu