|
-
Mar 6th, 2004, 02:43 AM
#1
Thread Starter
Lively Member
File copy errors Help
I am using the file.copy command in a thread.
In general what I am trying to do is get a spool file from the printer spool folder and copying it to another folder using the filesystem watcher whcih then calls a copy subroutine.
This will work for the first and second file but then after about two files and error comes up saying:-
An unhandled exception of type 'System.IO.IOException' occured in mscorlib.dll
The supplied user buffer is not valid for the requested operation.
Cannot understand why this is happening, the files are all the same and have the same extention, of the form ######.spl the only difference is the name and cannot find information on this error.
I appreciate any help.
-
Mar 6th, 2004, 08:55 AM
#2
I wonder how many charact
Maybe one of your threads is not ending correctly, or ending at all, doesn't close a filestream, or flush a stream.
Take your code of out the threading and see if it happens without being in a thread.
-
Mar 7th, 2004, 06:37 AM
#3
Thread Starter
Lively Member
Thanks for the reply. From further test it seems that it is not a copy issue but a spooling file issue. I opened another tread as I think that what I am trying to do may not be possible.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|