Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8528-Mar-14 18:26
cravi8528-Mar-14 18:26 
GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8528-Mar-14 18:38
cravi8528-Mar-14 18:38 
GeneralRe: Tiff Image Copied with extra bytes Pin
Ravi Bhavnani29-Mar-14 4:37
professionalRavi Bhavnani29-Mar-14 4:37 
GeneralRe: Tiff Image Copied with extra bytes Pin
BobJanova31-Mar-14 0:35
BobJanova31-Mar-14 0:35 
GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8531-Mar-14 17:21
cravi8531-Mar-14 17:21 
AnswerRe: Tiff Image Copied with extra bytes Pin
Dave Kreskowiak28-Mar-14 13:02
mveDave Kreskowiak28-Mar-14 13:02 
GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8528-Mar-14 18:39
cravi8528-Mar-14 18:39 
GeneralRe: Tiff Image Copied with extra bytes Pin
Dave Kreskowiak29-Mar-14 3:29
mveDave Kreskowiak29-Mar-14 3:29 
OK, the File.Copy method gets around to calling the CopyFile function in the Windows Kernel. It's telling Windows to copy the file. There is no .NET code that is doing the actual read and write operations.

The only thing I can think of is that you're copying the file before the buffer is flushed that is writing the file.

Gc.Collect()?? Remove it. You don't need it. All you're doing is screwing up the self-tuning portion of the garbage collector.

Honestly, this is the most complicated code I've seen for copying a batch of files. What are you doing with it all??

GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8529-Mar-14 3:39
cravi8529-Mar-14 3:39 
GeneralRe: Tiff Image Copied with extra bytes Pin
Dave Kreskowiak29-Mar-14 3:59
mveDave Kreskowiak29-Mar-14 3:59 
GeneralRe: Tiff Image Copied with extra bytes Pin
cravi8529-Mar-14 5:01
cravi8529-Mar-14 5:01 
GeneralRe: Tiff Image Copied with extra bytes Pin
Dave Kreskowiak29-Mar-14 19:53
mveDave Kreskowiak29-Mar-14 19:53 
QuestionC# Pin
Member 1068292828-Mar-14 7:42
Member 1068292828-Mar-14 7:42 
AnswerRe: C# Pin
Richard MacCutchan28-Mar-14 8:07
mveRichard MacCutchan28-Mar-14 8:07 
AnswerRe: C# Pin
PIEBALDconsult28-Mar-14 8:19
mvePIEBALDconsult28-Mar-14 8:19 
GeneralRe: C# Pin
thatraja30-Mar-14 23:34
professionalthatraja30-Mar-14 23:34 
AnswerRe: C# Pin
Dave Kreskowiak28-Mar-14 9:38
mveDave Kreskowiak28-Mar-14 9:38 
GeneralRe: C# Pin
PIEBALDconsult31-Mar-14 3:48
mvePIEBALDconsult31-Mar-14 3:48 
GeneralRe: C# Pin
Dave Kreskowiak31-Mar-14 4:46
mveDave Kreskowiak31-Mar-14 4:46 
QuestionHow to use callbacks in remoting in .Net(c#) Pin
smit_a28-Mar-14 2:58
smit_a28-Mar-14 2:58 
AnswerRe: How to use callbacks in remoting in .Net(c#) Pin
alberich12328-Mar-14 3:24
alberich12328-Mar-14 3:24 
AnswerRe: How to use callbacks in remoting in .Net(c#) Pin
BobJanova31-Mar-14 0:46
BobJanova31-Mar-14 0:46 
GeneralRe: How to use callbacks in remoting in .Net(c#) Pin
smit_a1-Apr-14 1:00
smit_a1-Apr-14 1:00 
GeneralRe: How to use callbacks in remoting in .Net(c#) Pin
BobJanova1-Apr-14 1:20
BobJanova1-Apr-14 1:20 
QuestionHow to use TreeView for getting values from database in Sales form Pin
H@ck_N_Cr@ck27-Mar-14 21:18
H@ck_N_Cr@ck27-Mar-14 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.