Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serial port and reading HEX(FF) Pin
mn759301-Aug-07 21:49
mn759301-Aug-07 21:49 
Questionproblem with Linq Expressions Pin
Super Lloyd1-Aug-07 4:35
Super Lloyd1-Aug-07 4:35 
QuestionConverting crystal report in to a RDL file Pin
logicaldna1-Aug-07 3:18
logicaldna1-Aug-07 3:18 
AnswerRe: Converting crystal report in to a RDL file Pin
Not Active1-Aug-07 3:46
mentorNot Active1-Aug-07 3:46 
QuestionRe:Flash Player Control for Standalone Application in .Net Pin
kyreddy1-Aug-07 2:40
kyreddy1-Aug-07 2:40 
AnswerRe:Flash Player Control for Standalone Application in .Net Pin
il_masacratore1-Aug-07 2:53
il_masacratore1-Aug-07 2:53 
QuestionWPF Treeview with checkboxes Pin
Johan Lombaard1-Aug-07 2:16
Johan Lombaard1-Aug-07 2:16 
QuestionCannot Delete a File Pin
Mihir Karkare1-Aug-07 2:13
Mihir Karkare1-Aug-07 2:13 
I need to be able to delete a log file. However i'm getting the following error:

{System.IO.IOException: The process cannot access the file 'C:\Web_Projects\eServiceRemoteDesktop\bin\Debug\mServiceLog.log' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at eServiceRemoteDesktop.frmTimeTicketSync.tlStpBtnClearLog_Click(Object sender, EventArgs e) in C:\Web_Projects\eServiceRemoteDesktop\frmTimeTicketSync.cs:line 229}

(line 229 being the line where i'm trying to do the abovementioned delete file. The emphasis added in the snippet is by me.)

I think that the Logger class we are using does not let go of the log file. I'm not going to be able to make any changes to the logger code though. Is there any other way to make this delete happen?


Two Thumbs Up!!
Mihir Karkare

AnswerRe: Cannot Delete a File Pin
Martin#1-Aug-07 2:25
Martin#1-Aug-07 2:25 
AnswerRe: Cannot Delete a File Pin
Luc Pattyn1-Aug-07 2:27
sitebuilderLuc Pattyn1-Aug-07 2:27 
GeneralRe: Cannot Delete a File Pin
Mihir Karkare2-Aug-07 1:06
Mihir Karkare2-Aug-07 1:06 
AnswerRe: Cannot Delete a File Pin
Naveed7271-Aug-07 3:21
Naveed7271-Aug-07 3:21 
GeneralRe: Cannot Delete a File Pin
Mihir Karkare2-Aug-07 1:09
Mihir Karkare2-Aug-07 1:09 
AnswerRe: Cannot Delete a File Pin
Software_Specialist1-Aug-07 4:53
Software_Specialist1-Aug-07 4:53 
GeneralRe: Cannot Delete a File Pin
Mihir Karkare2-Aug-07 1:11
Mihir Karkare2-Aug-07 1:11 
QuestionHot to make two separate apps communicate? Pin
michal.kreslik1-Aug-07 2:08
michal.kreslik1-Aug-07 2:08 
AnswerRe: Hot to make two separate apps communicate? Pin
Luc Pattyn1-Aug-07 2:31
sitebuilderLuc Pattyn1-Aug-07 2:31 
AnswerRe: Hot to make two separate apps communicate? Pin
originSH1-Aug-07 2:45
originSH1-Aug-07 2:45 
GeneralRe: Hot to make two separate apps communicate? Pin
michal.kreslik1-Aug-07 3:12
michal.kreslik1-Aug-07 3:12 
GeneralRe: Hot to make two separate apps communicate? Pin
Not Active1-Aug-07 3:48
mentorNot Active1-Aug-07 3:48 
GeneralRe: Hot to make two separate apps communicate? Pin
originSH1-Aug-07 22:14
originSH1-Aug-07 22:14 
QuestionWindows Messages in Windows Service Pin
zvit1-Aug-07 1:49
zvit1-Aug-07 1:49 
AnswerRe: Windows Messages in Windows Service Pin
kubben1-Aug-07 1:55
kubben1-Aug-07 1:55 
AnswerRe: Windows Messages in Windows Service Pin
Dave Kreskowiak1-Aug-07 3:22
mveDave Kreskowiak1-Aug-07 3:22 
QuestionActive Directoryt Pin
franklinm1-Aug-07 1:42
franklinm1-Aug-07 1:42 

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.