FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

SYSTEM

Know if an application is still running


In my current INIT, I need to find out when another app has quit, but I can't depend on apple events being sent to give this information. Is there another way to do this? I tried patching ExitToShell but this doesn't always get called. Maybe someone knows of an OS routine that is the complement of InitZone--one that destroys the heap zone on quit.

wave


I'd use the process manager and check the running processes every once in a while. See jonathan's
<ftp://ftp.stiinc.com/ftp/public/fb/Sample_Source/Friday.sit> Friday application.

Or use the Layer manager, with the proviso that it may break under a future OS. Code for the latter is on Jamin's site under "LayerManagerPackage", I know... sorry I don't have the URL handy!

Bill