11-12-2008 02:15 PM
I have encountered a weird problem where data written to one file, ends up written into a different file that was opened for playing by the BB media player.
I am trying to debug the problem, and I got a question that I could not find it in the documentation.
If a file is opened using FileConnetion.Open(), then an outputStream is opened, written to and closed.
But the FileConnetion.Close() is not called.
What can possibly happen if this is done many times? Also when the garbage collection is called on the FileConnection, does it close it?
11-20-2008 12:14 PM
Failing to close connections can result in an application holding onto resources and cause a memory leak. Please see the following link for a sample on how to properly close connections.
How To - Close connections
Article Number: DB-00530