我用COleDispatch的CreateDispatch调用了google earth,用了一个定时器对google earth进行实时处理,但是一旦用户先关掉google earth,我的应用程序就会出错。我想在每次对google earth进行操作之前首先判断google earth是否被用户关闭,那么我应该如何判断google earth是否被用户关闭呢?