Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
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 
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 
Oh, I'm sorry, I copied another part of the algorithm that creates one of the files that are working.

this is the parte where he declarates the streamt:

Cmatrix correspondencias3;
		correspondencias3.crea_matriz(W,H,4);
		FILE *streamt = fopen("results/correspondencias3.txt", "w");


and this is the part that it uses to create the .txt:

for (y= 0; y<H ; y++)
		{
			int *current = &m_disparity.Pixel(0, y, 0);
			for (x = 0; x < W; x++)
			{
				correspondencias3.asignar_filas(x,y,current[x]);
				if (x==W-1)
				fprintf(streamt,"%d,%d %d,%d;\n",correspondencias3.matrix[x][y][0],correspondencias3.matrix[x][y][1],correspondencias3.matrix[x][y][2],correspondencias3.matrix[x][y][3]);
			else
				fprintf(streamt,"%d,%d %d,%d;  ",correspondencias3.matrix[x][y][0],correspondencias3.matrix[x][y][1],correspondencias3.matrix[x][y][2],correspondencias3.matrix[x][y][3]);

			}

		}
		fclose(streamt);


the problem is with correspondencias3.txt, correspondencias1.txt and correspondencias2.txt are working perfect.

if this is not the problem, what could it be?

thanks again for your help! I really really appreciate it!
if you need more info, just tell me.
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 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac9-Nov-08 10:13
electriac9-Nov-08 10:13 
GeneralRe: Renaming or deleting a displayed imgae Pin
Pete O'Hanlon9-Nov-08 10:19
mvePete O'Hanlon9-Nov-08 10:19 
GeneralRe: Renaming or deleting a displayed imgae Pin
Guffa9-Nov-08 10:53
Guffa9-Nov-08 10:53 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac9-Nov-08 11:23
electriac9-Nov-08 11:23 

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.