• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Discussion] Fixing leaks

Status
Not open for further replies.
Junior Spellweaver
Joined
Apr 18, 2009
Messages
171
Reaction score
4
What if we added a ps.close(); in every .java file?
Could this possibly fix most memory leaks?
Just an idea, post what you think.

Flame if you want, it's just an idea
 
Dead & gone...
Joined
Aug 22, 2008
Messages
269
Reaction score
5
EVERY java file? Okay, go ahead & waste your time and then get hit with 300 compile errors.
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Apr 29, 2008
Messages
1,297
Reaction score
509
What if we added a ps.close(); in every .java file?
Could this possibly fix most memory leaks?
Just an idea, post what you think.

Flame if you want, it's just an idea

99% of all Prepared Statement were closed unless you add one yourself.
And not all the major one / all java files use Prepared Statement
 
Upvote 0
Status
Not open for further replies.
Back
Top