Click here to Skip to main content
16,007,472 members
Home / Discussions / C#
   

C#

 
AnswerRe: Thumnails in C# Pin
Guffa9-Nov-08 19:18
Guffa9-Nov-08 19:18 
AnswerRe: Thumnails in C# Pin
N a v a n e e t h9-Nov-08 19:54
N a v a n e e t h9-Nov-08 19:54 
GeneralRe: Thumnails in C# Pin
Guffa9-Nov-08 23:23
Guffa9-Nov-08 23:23 
GeneralRe: Thumnails in C# Pin
N a v a n e e t h10-Nov-08 0:51
N a v a n e e t h10-Nov-08 0:51 
Questionpartial class Pin
netJP12L9-Nov-08 17:48
netJP12L9-Nov-08 17:48 
AnswerRe: partial class Pin
User 66589-Nov-08 19:11
User 66589-Nov-08 19:11 
AnswerRe: partial class Pin
Dave Kreskowiak10-Nov-08 3:29
mveDave Kreskowiak10-Nov-08 3:29 
QuestionThe process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 11:52
farid_colombia9-Nov-08 11:52 
Hi everybody!

I'm doing my project and I'm getting this message with just one of the .txt files that I create before.

I made a .dll from a C++ project and it works perfectly. The objective of the DLL is to create three images and three .txt files, after it finishes I call the images, which is working perfectly, and then I call the .txt files. Two of them open perfect and they show me the respective data but when I do click on a button to call the third .txt to show me the data, on the Debug mode VS2005 tells me: "The process cannot access the file TXT because it is being used by another process"

I don't know if it is maybe because the DLL is still making the txt file or something like that, but I haven't found the solution to my issue.

Here is a part of my code that is working with the other two files but it isn't with the last one:

//Graph Cuts matrix
//Part of algorithm to read the matrix from the .txt file
int columnas = 0;
string puntoycoma, array3 = "";
string[] lines = System.IO.File.ReadAllLines(VariablesGlobales.path1 + "results\\correspondencias3.txt");
puntoycoma = lines[0];
int filas = lines.Length;


The part that is in black is where I read the .txt file.

I hope you can help me, I'm getting desperated!!

Thanks a lot for your attention, if you need more information about my code, I'm gonna be looking my mail all the time in case i receive a response from you.
AnswerRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 11:59
Mark Salsbery9-Nov-08 11:59 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 13:33
farid_colombia9-Nov-08 13:33 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 14:13
Mark Salsbery9-Nov-08 14:13 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 15:39
farid_colombia9-Nov-08 15:39 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 17:25
Mark Salsbery9-Nov-08 17:25 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 17:36
farid_colombia9-Nov-08 17:36 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
v.b.kiruthi4-Feb-09 19:53
v.b.kiruthi4-Feb-09 19:53 
AnswerRe: The process cannot access the file because it is being used by another process!! Pin
blackjack215010-Nov-08 0:43
blackjack215010-Nov-08 0:43 
QuestionRenaming or deleting a displayed imgae Pin
electriac9-Nov-08 9:52
electriac9-Nov-08 9:52 
AnswerRe: Renaming or deleting a displayed imgae Pin
Christian Graus9-Nov-08 9:54
protectorChristian Graus9-Nov-08 9:54 
AnswerRe: Renaming or deleting a displayed imgae Pin
Mark Salsbery9-Nov-08 9:54
Mark Salsbery9-Nov-08 9:54 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac9-Nov-08 10:00
electriac9-Nov-08 10:00 
GeneralRe: Renaming or deleting a displayed imgae Pin
Muammar©9-Nov-08 20:59
Muammar©9-Nov-08 20:59 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac10-Nov-08 0:21
electriac10-Nov-08 0:21 
GeneralRe: Renaming or deleting a displayed imgae Pin
Muammar©10-Nov-08 3:07
Muammar©10-Nov-08 3:07 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac10-Nov-08 3:19
electriac10-Nov-08 3:19 
GeneralRe: Renaming or deleting a displayed imgae Pin
Christian Graus9-Nov-08 10:04
protectorChristian Graus9-Nov-08 10:04 

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.