Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Out of memory with file streams
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Zig, post: 3483529"] You are right, FileOutputStream & FileReader are pretty primitive. ObjectOutputStream, OTOH is a different matter. ObjectOutputStream will keep references to objects written to the stream, which enables it to handle cyclic object graphs, and repeating references of the same object are handled predictably. You can force ObjectOutputStream to clean up by using: treeOut.writeObject(binTree); treeOut.reset(); This should notify ObjectOutputStream that you will not be re-referencing any previously written objects, and allow the stream to release it's internal references. HTH, -Zig [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Out of memory with file streams
Top