wcf - How do I solve 'System.OutOfMemoryException' -
i have windows service application. busy application. supposed run continuously looking things do. after runs while
exception of type 'system.outofmemoryexception' thrown.
it can happen @ different times paragraph:
private shared function getunprocessedqueue() boolean
try dim l_svcooa new svcitgooa.isvcitgooaclient(ooaprocessing.cglobals.endpoint_itgooa) dim l_ifilter new svcitgooa.clsfilter l_svcooa l_ifilter .filingtype = ooaprocessing.cglobals.filingtype end m_returnclass = .itgwcfooa(1, cglobals.databaseindicator, svcitgooa.eooaaction.getunprocessedqueue, l_ifilter, 71) return completedgetunprocessedqueue(m_returnclass) end catch ex exception exceptionhandling(ex, "getunprocessedqueue " & m_application) return false end try end function
this using wcf service read queue. reads queue every 2 minutes see if new records have been added it.
please me solve this. don’t know start.
the outofmemoryexception exception occurs when gc has completed cycle of collection memory not available after that. couldn't make out above code snippet does, think using weak references objects useful.
Comments
Post a Comment