This is what I do - maybe it will help.
When I launch the application, I assign the application object to a memvar.
oApp = CREATEOBJECT("appname")
When the user exits the program, I CLEAR EVENTS, then RELEASE ALL EXTENDED.
This works for me.
Dave
Live life today - tomorrow will take care of itself.