What causes this?

D

Devhead

What causes this file when saving word doc in code:

~WRL<some number>.tmp

what are the conditions needed for it to be created? it seems to be a copy
of original file in use looking at the file size. i would rather not have to
deal with it if possible so i need to prevent this file. if so, how?

thanks.
 
L

Lance Wynn

I believe it's just a temp file. It will be deleted if you exit Word
cleanly, and you shouldn't need to worry about it. It's made so if your
computer crashes, and you haven't saved your file, you can still retrieve
it.



What causes this file when saving word doc in code:

~WRL<some number>.tmp

what are the conditions needed for it to be created? it seems to be a copy
of original file in use looking at the file size. i would rather not have to
deal with it if possible so i need to prevent this file. if so, how?

thanks.
 
J

Jim Vierra

And if Devhead would stop screwing around with C# he wouldn't be leaving
behind a trail of temp files.

Devhead - just delete them when they get too numerous. Running under the
debugger will keep you from cleaning up in Word. It is also an indication
that you code is not shutting Word down correctly which might account for
the corruption you have reported in other posts. If you run to an exception
in C# and don't clean up this is one of the things that can happen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top