Check if TIF file in use

  • Thread starter Thread starter Guest
  • Start date Start date
Or do as I suggested, and use a programmatic interface as supplied by
Cannon. I'm sure they would have a "job complete" call back

Jeff
 
Are you sure you tried this with FileShare.None specified for the share
argument?

FileShare.None means that you can't open the file if something else has it
open (in any way, shape or form) and, once you have it open, nothing else
can open it untill you close it.

It is what is commonly known as 'opening a file for exclusive use' and it
works reliably.

If the scanner is still writing the file I would expect that you get an
exception when you attempt to open the file in this manner.

If you don't, and the scanner is still writing the file, then it would
indicate that the scanner is opening and closing the file each time it
writes a block.

Because of the critical nature of the file (it is only the entire file that
has any meaning), if anyone who worked for me wrote a piece of code like
that, they would be looking for another job.
 
Stephany,
Yes, I tried to open with FileShare.None and it doesn't work. I can open file
while the scanner is still writing without any exceptions. It seems like
Canon "Capture Perfect" software is opening and closing the file each time it
writes
to it. It looks strange to me, because they handle PDF format properly. I
will call Canon today and find out what is going on.
Thanks for reply.

Val
 
Andrew,
Do you have any code examples or articles how to find the marker/data part
of the file?
Thanks,

Val
 
ValK said:
Andrew,
Do you have any code examples or articles how to find the marker/data
part of the file?

Search for tif at www.wotsit.org - I'd trust the Adobe document most, and
hope that Canon conform to it.

Or if you have Photoshop 6, I think it's in the SDK which you can install
from the CD....<has a look>... yes it is. Go for the wotsit doc.

Good luck!

Andrew
 
Back
Top