I have seen some examples that after data is read using SqlCeResultSet that a Close is called.
Do I really need to call close? What are the drawbacks if I don’t close it? (does something else bad happen? Do I get memory leaks?….)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you do need to
Closeyour result sets; otherwise, you may leak native resources.You should simply use a
usingblock.