Click here to Skip to main content
15,902,032 members
Home / Discussions / C#
   

C#

 
QuestionDate as a Regular Expression Pin
Tyler4523-Apr-06 7:20
Tyler4523-Apr-06 7:20 
AnswerRe: Date as a Regular Expression Pin
Judah Gabriel Himango23-Apr-06 7:52
sponsorJudah Gabriel Himango23-Apr-06 7:52 
QuestionDate in DataBinding Pin
alee15.10.8823-Apr-06 5:48
alee15.10.8823-Apr-06 5:48 
AnswerRe: Date in DataBinding Pin
Robert Rohde24-Apr-06 1:37
Robert Rohde24-Apr-06 1:37 
GeneralRe: Date in DataBinding Pin
alee15.10.8824-Apr-06 1:51
alee15.10.8824-Apr-06 1:51 
GeneralRe: Date in DataBinding Pin
Robert Rohde24-Apr-06 2:59
Robert Rohde24-Apr-06 2:59 
Questionretreiving both local users and active directory users Pin
e_akhras23-Apr-06 4:56
e_akhras23-Apr-06 4:56 
AnswerRe: retreiving both local users and active directory users Pin
abdallahziad23-Apr-06 6:02
abdallahziad23-Apr-06 6:02 
AnswerRe: retreiving both local users and active directory users Pin
abdallahziad23-Apr-06 6:09
abdallahziad23-Apr-06 6:09 
GeneralRe: retreiving both local users and active directory users Pin
e_akhras24-Apr-06 1:07
e_akhras24-Apr-06 1:07 
Questionany info, about rational rose models , kinds , exampels ? Pin
abdallahziad23-Apr-06 3:15
abdallahziad23-Apr-06 3:15 
AnswerRe: any info, about rational rose models , kinds , exampels ? Pin
alexey N23-Apr-06 17:54
alexey N23-Apr-06 17:54 
Generalthx for helping Pin
abdallahziad24-Apr-06 2:03
abdallahziad24-Apr-06 2:03 
QuestionRotate images with links Pin
Amalarajan23-Apr-06 2:49
Amalarajan23-Apr-06 2:49 
AnswerRe: Rotate images with links Pin
e_akhras23-Apr-06 5:17
e_akhras23-Apr-06 5:17 
GeneralRe: Rotate images with links Pin
Amalarajan24-Apr-06 0:18
Amalarajan24-Apr-06 0:18 
AnswerRe: Rotate images with links Pin
sudharsong23-Apr-06 21:33
sudharsong23-Apr-06 21:33 
QuestionSynchronization with C# Pin
Lilla8823-Apr-06 2:37
Lilla8823-Apr-06 2:37 
AnswerRe: Synchronization with C# Pin
Graham Nimbley24-Apr-06 13:39
Graham Nimbley24-Apr-06 13:39 
QuestionGenerate documentation Pin
JensB23-Apr-06 1:40
JensB23-Apr-06 1:40 
AnswerRe: Generate documentation Pin
CWIZO23-Apr-06 2:54
CWIZO23-Apr-06 2:54 
AnswerRe: Generate documentation Pin
Graham Nimbley24-Apr-06 13:43
Graham Nimbley24-Apr-06 13:43 
QuestionGetting error: There is already an open DataReader associated with this Command which must be closed first. Pin
emran83423-Apr-06 0:21
emran83423-Apr-06 0:21 
AnswerRe: Getting error: There is already an open DataReader associated with this Command which must be closed first. Pin
Guffa23-Apr-06 0:56
Guffa23-Apr-06 0:56 
Answerit's a ADO.NET limitation ! Pin
e_akhras23-Apr-06 5:09
e_akhras23-Apr-06 5:09 
the exception you're getting is probably when executing SQLCommands using "ExecuteDataReader" and openning the datareader while another data reader is already opened in another thread.

example of creating the exception:

thread 1 executes:
SqlDataReader dr = LocalSqlCommand.ExecuteDataRead();
dr.Open();
...

in the same time thread 2 tries to execute the same symmantec:

SqlDataReader dr = LocalSqlCommand.ExecuteDataRead()
dr.Open() -> this will generate the exception...


its a .NET limitation to open only one DataReader per application !!!

a workaround:
- always close the dataReader when finished by executing: dr.Close()
- try raising a flag between threads (mutex) so they block each other while they open and close DataReaders

best regards

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.