OS: Windows 2000 and Windows XP
VB5 Service Pack 3
I have an application that loads a Rich Text Box with a .Rtf file every ten seconds.
rtbWelcome.LoadFile fileWelcome_Docs.Path + "\" + fileWelcome_Docs.List(MyCounter), rtfRTF
These files were created in Word then converted to Richtext format to be displayed in the RichText Box.
These files contains Text, Inserted Pictures and other Graphics.
After displaying the RTB for ten seconds, it is cleared using rtbWelcome.TextRTF = ""
The memory used by the RTB is partially cleared, however the majority is not. When the application loads the next file the memory used by the application is increased until the point the the computer runs out of resources and crashes.
How do I recover all memory each time I unload the file?
Would there be a better format to display these files to computers that don't have word installed?