Hello, Chen.
As I recall, garbage collection isn't done
immediately--at least, not until the collector
realizes there are no more references to the strings
to be deleted--so you may have to call the garbage
collector manually. Also, putting your delete and add
methods in separate functions may help the collector
recognize the strings you intend to delete more
quickly, if you haven't done so already.
Hope this helps.
Cromwell
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".