<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi list,<br></div><div><br></div><div>I have a plugin that generate a shape in a temp directory using processing in the code (not in console).<br></div><div>After using it, at the end of the plugin I try to delete the temp directory, but I get an error because the directory is used by another process.<br></div><div>This is the step by step:<br></div><div><br></div><div>- open plugin<br></div><div>- create a temp directory<br></div><div>- create a shape in the temp directory with processing, code: processing.runalg(...)<br></div><div>- use the shape<br></div><div>- try to delete the temp directory (with the shape inside) and I have an access error.<br></div><div><br></div><div>I suppose the processing algorithm didn't close the file...<br></div><div>I know I can try by using memory layer, but actually I didn't wan't to use this solution.<br></div><div>What can I do?<br></div><div><br></div><div>Thanks<br></div><div>Stefano<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><span name="x"></span>*****************************<br>Stefano Masera<br>Arpa Piemonte<br>Via Pio VII, 9 - 10135 Torino<br>www.arpa.piemonte.it<br><span name="x"></span><br></div><div><br></div></div></body></html>