View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000429 | .NET API | Implementation Bug | public | 2008-08-07 16:58 | 2008-08-13 02:08 |
Reporter | Randy Armstrong | Assigned To | Randy Armstrong | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Summary | 0000429: OpcCom.Interop.CreateInstance repeatedly causes a memory leak | ||||
Description | I found that calling OpcCom.Interop.CreateInstance repeatedly causes a memory leak. The following allocated memory does not get released upon leaving CreateInstance method: Code: GCHandle hClsid = GCHandle.Alloc(IID_IUnknown, GCHandleType.Pinned); Adding the following code in the finally block will dealloate the memory: Code: if (hClsid.IsAllocated) brian | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
|
The code as quoted does not exist in the current code base. The OpcCom.Interop.CreateInstance already has a call to if (hIID.IsAllocated) hIID.Free(); |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-08-07 16:58 | Randy Armstrong | New Issue | |
2008-08-13 01:58 | Randy Armstrong | Status | new => assigned |
2008-08-13 01:58 | Randy Armstrong | Assigned To | => Randy Armstrong |
2008-08-13 02:08 | Randy Armstrong | Status | assigned => resolved |
2008-08-13 02:08 | Randy Armstrong | Resolution | open => unable to reproduce |
2008-08-13 02:08 | Randy Armstrong | Note Added: 0000745 |