Hello,
I am developping an application in vb.net, using Mob 3.2, and i have noticed a memory leak.
I have to open and close an outlook session and an email account every five seconds, and have to do this all day long.
But it seems that disposing the _EmailAccount doesn’t work.
After 300 attemps, the memory is 1 Mb lesser.
Here is the sample code (after doing this 300 times, we can easily see a memory leak) :
Private _Session As OutlookSession Private _EmailAccount As InTheHand.WindowsMobile.PocketOutlook.EmailAccount
Private Sub test()
_Session = New OutlookSession _EmailAccount = _Session.EmailAccounts(0) If Not _EmailAccount Is Nothing Then _EmailAccount.Dispose() _EmailAccount = Nothing
End If
If Not _Session Is Nothing Then _Session.Dispose() _Session = Nothing
End If
End Sub Am i doing a wrong things ?
Thanks