2
Answers

Overwrite and image

Randell McGlynn

Randell McGlynn

15y
3.7k
1
I'm trying to save an image over a file with the same file name. When it attempts to do this is bombs out because it says either it's a general GSI+ error or the process is already in use. This makes perfect sense why it would throw those errors, but how can I overwrite the file so that it doesn't give me this problem. I've tried Opening a file stream around it then closeing it. That didn't work. I also tried useing the *bitmap variable*.Dispose() to dispose of all the resources. That didn't  do anything either. Is there something else I could try? or perhaps something I'm doing wrong?
Answers (2)
0
shimtanny

shimtanny

NA 440 0 20y
Hi Cell[, ] Cells = null; This line doesn't make an instance. It's just a declaration. It declares an tow dimensional array with Cell objects. Unfortunately the variable name was choosen the same as the class. Maybe it looks more clear the following way: Cell[,] myCells = null; Here is an example with another type than Cell: int[,] a = new int[2,5]; Simon