Im developping in vfp and I just can't figure out why when the user close the application with the 'X' it doesn't kill the process when it does the oMapApp.Quit(). It seems to kill a couple of thread in mappoint.exe but it doesn't kill the whole process. Here's the code of the destroy event of my object:

THIS.oRoute = NULL
THIS.oMap = NULL

IF TYPE("THIS.oMapApp") == "O" AND THIS.lCloseAppWhenDone
THIS.oMapApp.Quit()
ENDIF

Regards,
Pierre-Luc