Hi guys, I want to write to a file but i am getting this weird error message. Only my application is using the path1. It Seems like file is being used by other process. I couldn't figure it out who is using which of my function is using the file.
using (StreamWriter sw = new StreamWriter(path1,false,Encoding.UTF8 ))
at System.IO._Error.WinIOError(Int32 errorCode,string maybeFullPath)
at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare Share,Int32BufferSize,fileOptions options, SeCURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy)
Yes, I do have permissions. I am creating folders, subfolders and file dynimacally and writing to the file. Even removing of sw.close or using statments doesn't help. Is there anyway i can find out which thread is using the file.
Thanks for answering guys, So far no lucky but what a funny thing i just noticed is that when i run the function to write to the file it throws exception related to file is being used by other process but when i run it again it actually writes ....what's going on I got no idea. Are my codes running faster than CPU ...;)
Exactly, you got the cure for my app problem.....before when i used to run my app in debug mode i was noticing this myapp.vshost.exe started...since i uncheck it works like charm.... Feel like i am on the safe planet....gonna giving u 5
i have tried this but i have scanned an answer sheet of entrance test exam paper, n stored as image file so i want to read at which answer's line its option is selected.The image includes options like you have to choose one answer from 4.So i want find which option is selected.
studying would probably be easier, but you're going to need some kind of really cool OCR or image recog software, i've seen some articles on CP about it but cant remember what i was looking for at the time, i think one compared the color data of each pixel to try to find patterns, it may have even been looking for things that were circled. handwriting recognition software may help too.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
Hi I want to write a program to forward incoming tcp connections on port 22 on my computer to another address on the network (which happens to be 192.168.37.20) on the same port 22. Does anyone have any suggestion how I can do this?
I need to write a simple windows service that will automatically forward connections on port 22 (SSH) to the other address. And i have found no easy way to do this in windows, nor have i found a freeware program that can be installed as a system service
Last Visit: 31-Dec-99 18:00 Last Update: 6-May-21 13:16