Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: using and close Pin
imbiz7-Jun-10 14:46
imbiz7-Jun-10 14:46 
GeneralRe: using and close Pin
harold aptroot7-Jun-10 9:51
harold aptroot7-Jun-10 9:51 
AnswerRe: using and close Pin
harold aptroot7-Jun-10 7:25
harold aptroot7-Jun-10 7:25 
GeneralRe: using and close Pin
imbiz7-Jun-10 8:37
imbiz7-Jun-10 8:37 
AnswerRe: using and close Pin
PIEBALDconsult7-Jun-10 13:49
mvePIEBALDconsult7-Jun-10 13:49 
GeneralRe: using and close Pin
imbiz7-Jun-10 14:47
imbiz7-Jun-10 14:47 
AnswerRe: using and close Pin
prasadbuddhika7-Jun-10 18:35
prasadbuddhika7-Jun-10 18:35 
GeneralRe: using and close Pin
imbiz8-Jun-10 1:09
imbiz8-Jun-10 1:09 
That's right. So I do not use "using" if I want to return the datareader.
But "CommandBehavior.CloseConnection" is a remedy for this.
OleDbDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);

Once you close datareader, the connection will be closed too. You can see this result in step debugging.
Questiontext to speech problem Pin
maryamtooty7-Jun-10 6:08
maryamtooty7-Jun-10 6:08 
AnswerRe: text to speech problem Pin
Anshul R8-Jun-10 20:30
Anshul R8-Jun-10 20:30 
GeneralRe: text to speech problem Pin
maryamtooty11-Jun-10 5:20
maryamtooty11-Jun-10 5:20 
GeneralRe: text to speech problem Pin
Anshul R11-Jun-10 6:16
Anshul R11-Jun-10 6:16 
Questionhtml into cs Pin
genieabdo7-Jun-10 6:02
genieabdo7-Jun-10 6:02 
AnswerRe: html into cs Pin
genieabdo7-Jun-10 7:01
genieabdo7-Jun-10 7:01 
GeneralRe: html into cs Pin
Richard MacCutchan7-Jun-10 7:12
mveRichard MacCutchan7-Jun-10 7:12 
GeneralRe: html into cs Pin
genieabdo7-Jun-10 7:24
genieabdo7-Jun-10 7:24 
GeneralRe: html into cs Pin
Luc Pattyn7-Jun-10 7:27
sitebuilderLuc Pattyn7-Jun-10 7:27 
GeneralRe: html into cs Pin
Richard MacCutchan7-Jun-10 7:43
mveRichard MacCutchan7-Jun-10 7:43 
GeneralRe: html into cs Pin
Pete O'Hanlon7-Jun-10 9:25
mvePete O'Hanlon7-Jun-10 9:25 
GeneralRe: html into cs Pin
Keith Barrow7-Jun-10 7:15
professionalKeith Barrow7-Jun-10 7:15 
GeneralRe: html into cs Pin
walterhevedeich7-Jun-10 16:28
professionalwalterhevedeich7-Jun-10 16:28 
QuestionRender some images such as squares but be able to change viewpoint in windows forms ie scrolling? Pin
venomation7-Jun-10 5:28
venomation7-Jun-10 5:28 
AnswerRe: Render some images such as squares but be able to change viewpoint in windows forms ie scrolling? Pin
venomation7-Jun-10 12:47
venomation7-Jun-10 12:47 
QuestionDefine if executable is 16, 32 or 64 bit? Pin
ds417-Jun-10 4:49
ds417-Jun-10 4:49 
AnswerRe: Define if executable is 16, 32 or 64 bit? Pin
Pete O'Hanlon7-Jun-10 4:56
mvePete O'Hanlon7-Jun-10 4:56 

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.