Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1042 closed defect (fixed)

Viewer template file streams not properly closed

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: AJAX Viewer Version: 2.0.2
Severity: trivial Keywords:
Cc: brucedechant External ID:

Description

In MgDev/Web/src/mapviewernet/common.aspx:

The LoadTemplate() method does not close/dispose of the stream reader after reading the template contents.

This results in a dangling stream reader for each template request.

Will invetigate to see if other languages are affected too.

Change History (5)

comment:1 by jng, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk: r4070 Fixed in 2.1 branch: r4071

comment:2 by brucedechant, 15 years ago

Should the .NET code change call Close() instead of Dispose()? Note: Close() calls Dispose() internally for the StreamReader.

comment:3 by brucedechant, 15 years ago

Cc: brucedechant added

comment:4 by jng, 15 years ago

Just read MSDN docs, there are two overloads of Dispose() and Close() calls the correct one. I'll get this changed.

comment:5 by jng, 15 years ago

Changed Dispose() to Close()

trunk: r4072 2.1 branch: r4073

Note: See TracTickets for help on using tickets.