[comp.sys.mac.programmer] Shutdowm Manager Help

moyman@ea.ecn.purdue.edu (James M Moya) (12/09/89)

Help for a novice:
I wrote a simple application to draw a PICTure by opening
a PICT and WIND resource and drawing it...no prob there...

main ()
{
ToolBoxInit();
drawPICT();
}

To put this in the shutdown queue I tried (and several other
version like):

theEnd() 
{
ToolBoxInit();
drawPICT();
}

main () 
{
ShutDwnInstall(theEnd, sdOnUnmount);
}

The result was that the Window would get opened but the PICT would not
be drawn???  It exited OK (a button click) and shutdown...I can't figure 
out why it would find the WIND resource and not the PICT??  Is this just 
a basic misunderstanding of how the Shutdown Manager works???  Am I calling
ShutDwnInstall correctly???  Any help would be appreciated...E-mail
to me and I will summarize...


Mike Moya
Engineering Computer Network              moyman@ee.ecn.purdue.edu
Purdue University                         ...!pur-ee!moyman