Page 1 of 1

How to release Desing's memory?

Posted: Tue Jun 08, 2010 5:26 am
by RickyHuang
MyCode
Dim report As New StiReport
Me.Hide()
report.Design()
report.Dispose()
report = Nothing
Me.Show()
but Memory doesn't be release or dispose for 10 minutes

plz tell me how to release it..




How to release Desing's memory?

Posted: Wed Jun 09, 2010 12:57 am
by Andrew
Hello,

Please add the following code to the end of your code:
GC.Collect()
GC.Collect()
GC.Collect()

Thank you.