OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Leaking component

From: Stephan Deckers (stephan.deckersMOLDING.FICO.NL)
Date: Mon Mar 24 2003 - 09:08:32 CST


Recently we discovered a memoryleak in our software with a visual basic
component running on a Windows NT 4 platform with service pack 5 and within
MTS 1.0. We are using Visual Basic 5 SP3.
The average CPU load is nearly 50 % (with peaks reaching to 100 %) and the
visual basic component receives approxiomately 1 data-event (containing 4
bytes) each second (with bursts reaching 10 data-events each second). This
visual basic component stores this information internally in a dynamic array
and flushes the dynamic array after each 255 data-events. Therefor it uses
commands like ReDim and ReDim Preserve. Memory leakage is approxiomately 1
MB each hour which results in a crash after approxiomately 3 days.

Has anyone seen similar behaviour in an almost similar environment? or does
anyone know what could cause such leaks?

Stephan

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM