Geoprocessor QuickImport  EOSError

Discussion created by st.dlng on Apr 5, 2011
Latest reply on Sep 27, 2011 by st.dlng
ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();
gp.OverwriteOutput = true;
ESRI.ArcGIS.DataInteroperabilityTools.QuickImport quickImport = new ESRI.ArcGIS.DataInteroperabilityTools.QuickImport(openFileName, outputFileName);
IGeoProcessorResult results = (IGeoProcessorResult)gp.Execute(quickImport, null);
if(results != null && results.Status == esriJobStatus.esriJobSucceeded)

After I run my Application,this excude succeeded and I got the right dta.
But when I exit my Application,the follow error came:
Application Error:
  Exception EOSError in module fmedlg.dll at 00011F31.
  System Error Code : 1400.
  Invalid Window Handle.

I read about this:
Geoprocessor Class
  Thread Safety
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Is this error about Thread Safety? And how could I solve this problem?