Click here to Skip to main content
15,559,732 members
Home / Discussions / C#
   

C#

 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Not Active5-Sep-10 6:12
mentorNot Active5-Sep-10 6:12 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 6:35
Aseem Sharma5-Sep-10 6:35 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Not Active5-Sep-10 6:56
mentorNot Active5-Sep-10 6:56 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 7:20
Aseem Sharma5-Sep-10 7:20 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Dave Kreskowiak5-Sep-10 12:09
mveDave Kreskowiak5-Sep-10 12:09 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 20:59
Aseem Sharma5-Sep-10 20:59 
AnswerRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Luc Pattyn5-Sep-10 7:26
sitebuilderLuc Pattyn5-Sep-10 7:26 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 7:39
Aseem Sharma5-Sep-10 7:39 
1 Here is the Exception details

"System.IO.IOException: The process cannot access the file 'MyPhotograph.jpg' because it is being used by another process.\r\n at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)\r\n at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)\r\n at System.IO.Directory.Delete(String path, Boolean recursive)\r\n at NG.DataRep.CleanImage(String strFile) in E:\\Aseem Sharma\\KB\\My Software Development\\NG\\DataRep.cs:line 153"

2 Yes, I have confirmed, original file path is a fully qualified path and both temp file and original file are different file path.
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Dave Kreskowiak5-Sep-10 12:11
mveDave Kreskowiak5-Sep-10 12:11 
AnswerRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Pete O'Hanlon5-Sep-10 8:29
mvaPete O'Hanlon5-Sep-10 8:29 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Aseem Sharma5-Sep-10 21:02
Aseem Sharma5-Sep-10 21:02 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
NarVish6-Sep-10 1:04
NarVish6-Sep-10 1:04 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
Pete O'Hanlon6-Sep-10 1:33
mvaPete O'Hanlon6-Sep-10 1:33 
GeneralRe: Not able to delete original jpeg file after it is copied with System.IO.File.Copy() Pin
NarVish6-Sep-10 2:39
NarVish6-Sep-10 2:39 
QuestionProblem : Need to make COM InterOp at runtime using reflections Passing Pointers as parameters? Pin
glitteringsound4-Sep-10 21:23
glitteringsound4-Sep-10 21:23 
Questioncreating an own file for my application Pin
prasadbuddhika4-Sep-10 7:50
prasadbuddhika4-Sep-10 7:50 
AnswerRe: creating an own file for my application Pin
Not Active4-Sep-10 8:34
mentorNot Active4-Sep-10 8:34 
AnswerRe: creating an own file for my application Pin
DaveyM694-Sep-10 8:54
professionalDaveyM694-Sep-10 8:54 
AnswerRe: creating an own file for my application Pin
DaveAuld4-Sep-10 8:59
professionalDaveAuld4-Sep-10 8:59 
AnswerRe: creating an own file for my application [modified] Pin
Luc Pattyn4-Sep-10 10:20
sitebuilderLuc Pattyn4-Sep-10 10:20 
AnswerRe: creating an own file for my application Pin
OriginalGriff4-Sep-10 11:25
mveOriginalGriff4-Sep-10 11:25 
AnswerRe: creating an own file for my application Pin
Expert Coming4-Sep-10 23:12
Expert Coming4-Sep-10 23:12 
QuestionHii I am working on project and want to get some data from dataset and want to create and ink stroke Pin
googlejumbo4-Sep-10 7:20
googlejumbo4-Sep-10 7:20 
AnswerRe: Hii I am working on project and want to get some data from dataset and want to create and ink stroke Pin
Luc Pattyn4-Sep-10 7:40
sitebuilderLuc Pattyn4-Sep-10 7:40 
QuestionHow to determine and check whether a type in assembly is Custom type or Primitive type using reflection in .NET? Pin
glitteringsound4-Sep-10 6:14
glitteringsound4-Sep-10 6:14 

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.