Issue Details (XML | Word | Printable)

Key: DNET-189
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Jiri Cincura
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider
DNET-179

ParameterBuffer posible has to Destructor to release stream field.

Created: 11/Oct/08 12:37 PM   Updated: 11/Oct/08 01:51 PM
Component/s: ADO.NET Provider
Affects Version/s: 2.1.0, 2.5.0 Alpha 1, 2.5.0 Alpha 2
Fix Version/s: None


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 11/Oct/08 12:38 PM
4. ParameterBuffer posible has to Destructor to release stream field.

class ParameterBuffer

...

~ParameterBuffer()
{
Dispose();
}

public void Dispose()
        {
            if (this.stream != null)
            {
                this.stream.Close();
                this.stream.Dispose();
            }
        }
        
        

Jiri Cincura added a comment - 11/Oct/08 01:51 PM
The stream will be freed by GC. We don't need finalizer and/or IDisposable here.