Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: EDMX Reference in other project : type used in a using statment must be implicitly convertible to 'System.IDisposable' Pin
Sanket S Sonavane11-Dec-13 16:26
Sanket S Sonavane11-Dec-13 16:26 
QuestionWpf autocad integration Pin
Raj1352Sundar7-Dec-13 1:01
Raj1352Sundar7-Dec-13 1:01 
AnswerRe: Wpf autocad integration Pin
Eddy Vluggen7-Dec-13 1:53
professionalEddy Vluggen7-Dec-13 1:53 
Questionis this enough to free the resources? Pin
Jassim Rahma6-Dec-13 23:32
Jassim Rahma6-Dec-13 23:32 
AnswerRe: is this enough to free the resources? Pin
Eddy Vluggen7-Dec-13 1:52
professionalEddy Vluggen7-Dec-13 1:52 
GeneralRe: is this enough to free the resources? Pin
Jassim Rahma7-Dec-13 10:10
Jassim Rahma7-Dec-13 10:10 
GeneralRe: is this enough to free the resources? Pin
Eddy Vluggen9-Dec-13 4:56
professionalEddy Vluggen9-Dec-13 4:56 
AnswerRe: is this enough to free the resources? Pin
jschell7-Dec-13 10:46
jschell7-Dec-13 10:46 
Summing up what was indirectly referred to in the other response.

When you close a database resource, like a reader or connection you should also call Dispose. There are different ways to do that. You should do it EXPLICITLY in your code and you should not rely on garbage collection to do it for you.

When you close a data reader it can take time. That is implied in the documentation for close. If you don't want it to take that long then don't do as much with it before you close (and dispose) it.

Jassim Rahma wrote:
I feel after many entries that the system will be slow a


Your belief is probably ill founded. Resource management, when done correctly, will seldom even be measurable much less significant in an application. What is likely to be far more significant is what you actually do with the database and how you do it. So for example it takes far more time to do a database query than it does to close/dispose of the connection you used to do the query.
QuestionGridView disbale Edit if already in edit mode by another user Pin
Member 103249746-Dec-13 23:17
Member 103249746-Dec-13 23:17 
AnswerRe: GridView disbale Edit if already in edit mode by another user Pin
Mycroft Holmes6-Dec-13 23:39
professionalMycroft Holmes6-Dec-13 23:39 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Member 103249746-Dec-13 23:44
Member 103249746-Dec-13 23:44 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Mycroft Holmes7-Dec-13 12:49
professionalMycroft Holmes7-Dec-13 12:49 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Member 103249747-Dec-13 20:24
Member 103249747-Dec-13 20:24 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Mycroft Holmes7-Dec-13 21:41
professionalMycroft Holmes7-Dec-13 21:41 
AnswerRe: GridView disbale Edit if already in edit mode by another user Pin
Eddy Vluggen7-Dec-13 2:28
professionalEddy Vluggen7-Dec-13 2:28 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Member 103249747-Dec-13 2:46
Member 103249747-Dec-13 2:46 
GeneralRe: GridView disbale Edit if already in edit mode by another user Pin
Dave Kreskowiak7-Dec-13 5:02
mveDave Kreskowiak7-Dec-13 5:02 
QuestionHow to validate RequiredFieldValidator in ASP.net AjaxFileUploader Pin
Hitesh Vaghasiya6-Dec-13 18:12
Hitesh Vaghasiya6-Dec-13 18:12 
SuggestionRe: How to validate RequiredFieldValidator in ASP.net AjaxFileUploader Pin
Richard MacCutchan6-Dec-13 21:42
mveRichard MacCutchan6-Dec-13 21:42 
GeneralRe: How to validate RequiredFieldValidator in ASP.net AjaxFileUploader Pin
Hitesh Vaghasiya6-Dec-13 21:53
Hitesh Vaghasiya6-Dec-13 21:53 
GeneralRe: How to validate RequiredFieldValidator in ASP.net AjaxFileUploader Pin
Richard MacCutchan6-Dec-13 22:35
mveRichard MacCutchan6-Dec-13 22:35 
QuestionIntegration tests Pin
Member 44870836-Dec-13 10:00
Member 44870836-Dec-13 10:00 
AnswerRe: Integration tests Pin
Abhinav S7-Dec-13 20:50
Abhinav S7-Dec-13 20:50 
QuestionWeb Browser. Document always return null Pin
rajgaikwad015-Dec-13 23:21
rajgaikwad015-Dec-13 23:21 
AnswerRe: Web Browser. Document always return null Pin
Simon_Whale6-Dec-13 1:28
Simon_Whale6-Dec-13 1:28 

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.