Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
AnswerRe: SEARCH ENGINE Pin
N a v a n e e t h24-Oct-07 20:59
N a v a n e e t h24-Oct-07 20:59 
GeneralRe: SEARCH ENGINE Pin
Christian Graus24-Oct-07 21:06
protectorChristian Graus24-Oct-07 21:06 
GeneralRe: SEARCH ENGINE Pin
N a v a n e e t h24-Oct-07 21:12
N a v a n e e t h24-Oct-07 21:12 
AnswerRe: SEARCH ENGINE Pin
_tasleem24-Oct-07 21:31
_tasleem24-Oct-07 21:31 
AnswerRe: SEARCH ENGINE Pin
Nouman Bhatti24-Oct-07 23:28
Nouman Bhatti24-Oct-07 23:28 
AnswerRe: SEARCH ENGINE Pin
Paul Conrad27-Oct-07 12:33
professionalPaul Conrad27-Oct-07 12:33 
QuestionHow to sign a digital certificate..? Pin
Pankaj - Joshi24-Oct-07 20:44
Pankaj - Joshi24-Oct-07 20:44 
QuestionFileSystemWatcher class- reason ?? Pin
Hum Dum24-Oct-07 20:34
Hum Dum24-Oct-07 20:34 
private void OnChanged(object source, FileSystemEventArgs e)
{
	if(e.ChangeType == WatcherChangeTypes.Created)
	{
		txtFolder.text += "File " + e.FullPath + "has been " + e.ChangeType;
		
			using(StreamReader sr = new StreamReader(e.FullPath))
			{
			        string name = e.Name;
				string content = sr.ReadToEnd();
				sr.Close();
                                //some lines of code here
                                
				SendMessage(false);//function which i m calling
			}
		
	}
}



The above code i am using on OnChanged event of FileSystemWatcher class,
I have some question or problem:

1) whenever a file is created in this folder (which i m loooking),
everytime the create message is displayed properly, but sometime the function which i m calling(inside using {....}) is not executed or dont get called (dont know the reason)
why is this?Confused | :confused:

2)There is an error coming
"Execute Reader require an open & available connection. The connection's current state is open, executing".

This error come only sometime, why ?Confused | :confused:

plz ignore if some typing mistake in code Wink | ;)

thanks,
Humdum
AnswerRe: FileSystemWatcher class- reason ?? Pin
leppie24-Oct-07 21:13
leppie24-Oct-07 21:13 
QuestionRegarding code for decimal to ASCII Pin
praveenkumar palla24-Oct-07 20:21
praveenkumar palla24-Oct-07 20:21 
AnswerRe: Regarding code for decimal to ASCII Pin
Mohib Sheth24-Oct-07 20:26
Mohib Sheth24-Oct-07 20:26 
GeneralRe: Regarding code for decimal to ASCII Pin
praveenkumar palla24-Oct-07 20:49
praveenkumar palla24-Oct-07 20:49 
AnswerRe: Regarding code for decimal to ASCII Pin
PandemoniumPasha24-Oct-07 20:27
PandemoniumPasha24-Oct-07 20:27 
GeneralRe: Regarding code for decimal to ASCII Pin
praveenkumar palla24-Oct-07 20:49
praveenkumar palla24-Oct-07 20:49 
QuestionProtect DLL Pin
Mohib Sheth24-Oct-07 20:20
Mohib Sheth24-Oct-07 20:20 
AnswerRe: Protect DLL Pin
N a v a n e e t h24-Oct-07 20:51
N a v a n e e t h24-Oct-07 20:51 
GeneralRe: Protect DLL Pin
Mohib Sheth24-Oct-07 21:04
Mohib Sheth24-Oct-07 21:04 
GeneralRe: Protect DLL Pin
leppie24-Oct-07 21:12
leppie24-Oct-07 21:12 
AnswerRe: Protect DLL Pin
Mohib Sheth24-Oct-07 21:20
Mohib Sheth24-Oct-07 21:20 
GeneralRe: Protect DLL Pin
N a v a n e e t h24-Oct-07 21:27
N a v a n e e t h24-Oct-07 21:27 
GeneralRe: Protect DLL Pin
Mohib Sheth24-Oct-07 21:39
Mohib Sheth24-Oct-07 21:39 
QuestionCustom page setting in crystal report Pin
Sunil K Prajapati24-Oct-07 19:37
Sunil K Prajapati24-Oct-07 19:37 
QuestionWriting the content of a DataTable into XML string Pin
M.A.Burhan24-Oct-07 19:24
M.A.Burhan24-Oct-07 19:24 
Questioncomparison with delegates [modified] Pin
kabutar24-Oct-07 19:17
kabutar24-Oct-07 19:17 
AnswerRe: comparison with delegates Pin
Christian Graus24-Oct-07 20:58
protectorChristian Graus24-Oct-07 20:58 

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.