I am working on c#.Net application using Arcobjects.NET, and I am using the IMathOp, but I am facing a problem in temporary files generated by arcobjects, I specified the workspace for the tool, bu sometimes it generates the temporary files into the application folder not into the workspace folder i specified, is there and solution to guarantee creating temporary files in my work space in order to clean it later.
I am specifying the work space as follows:
IMathOp mathOp = new RasterMathOpsClass();
IRasterAnalysisEnvironment mathOpEnvironment = (IRasterAnalysisEnvironment)mathOp;
workspaceFactory = new RasterWorkspaceFactoryClass();
workspace = workspaceFactory.OpenFromFile(@"c:\temp", 0);
mathOpEnvironment.OutWorkspace = workspace;