<div dir="ltr"><div>Hi</div><div><br></div><div>I want to cancel the writing of a DXF file. It has, let's say, a million points. Before adding each point I check if the user canceled the task.<br></div><div>I have noticed that while I am writing point by point, the actual file in the disk that is growing is called "file.dxf.tmp", and only when I close the dataset it really writes "file.dxf", deleting the tmp one.</div><div><br></div><div>When the user cancels the process, I want to top writing and delete the file. I am calling the method MarkSuppressOnClose() , but I see that still the "file.dxf" is created... and then removed. This final step may take a long time, that is not needed at all.</div><div><br></div><div>Is there a way to cancel efficiently that process?</div><div><br></div><div>Thanks.<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div></div>