| Author: Dharmaraj 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi, When you are dealing with images, make sure that the image file is no more in use. If you are using stream class, make sure that at the end you are closing the stream class.
Regards, Dharma Editor,Mentor,MVM Try and fail but don't fail and try Me and DNS
|
| Author: vipul 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi, for that you can refer this link they provide solution http://stackoverflow.com/questions/876473/c-is-there-a-way-to-check-if-a-file-is-in-use
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: Anuraj 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
As Dharmaraj said make sure the stream is released. Normally IO exception will occur due this.
Thanks Anuraj THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS. BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT. dotnetthoghts
|
| Author: soniumesh 05 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Hi,
You are going to write(stream class) picture then store one of the system folder in that on store system folder system is still now use your image for write purpose.
So, put some thread between write ans store process.
Regard, umesh soni
|
| Author: Anil Kumar Pandey 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
make sure no other object is using that file.. if yeas release the file first and start reading or writing..
Thanks & Regards Anil Kumar Pandey
|